Class: ViewComponentCssDsl::Verifier::Finding
- Inherits:
-
Struct
- Object
- Struct
- ViewComponentCssDsl::Verifier::Finding
- Defined in:
- lib/view_component_css_dsl/verifier.rb
Instance Attribute Summary collapse
-
#check ⇒ Object
Returns the value of attribute check.
-
#component ⇒ Object
Returns the value of attribute component.
-
#message ⇒ Object
Returns the value of attribute message.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
Instance Attribute Details
#check ⇒ Object
Returns the value of attribute check
38 39 40 |
# File 'lib/view_component_css_dsl/verifier.rb', line 38 def check @check end |
#component ⇒ Object
Returns the value of attribute component
38 39 40 |
# File 'lib/view_component_css_dsl/verifier.rb', line 38 def component @component end |
#message ⇒ Object
Returns the value of attribute message
38 39 40 |
# File 'lib/view_component_css_dsl/verifier.rb', line 38 def @message end |
#severity ⇒ Object
Returns the value of attribute severity
38 39 40 |
# File 'lib/view_component_css_dsl/verifier.rb', line 38 def severity @severity end |
Instance Method Details
#error? ⇒ Boolean
45 |
# File 'lib/view_component_css_dsl/verifier.rb', line 45 def error? = severity == :error |
#to_s ⇒ Object
41 42 43 |
# File 'lib/view_component_css_dsl/verifier.rb', line 41 def to_s "#{component.name || component.inspect} [#{check}] #{severity}: #{}" end |