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
34 35 36 |
# File 'lib/view_component_css_dsl/verifier.rb', line 34 def check @check end |
#component ⇒ Object
Returns the value of attribute component
34 35 36 |
# File 'lib/view_component_css_dsl/verifier.rb', line 34 def component @component end |
#message ⇒ Object
Returns the value of attribute message
34 35 36 |
# File 'lib/view_component_css_dsl/verifier.rb', line 34 def @message end |
#severity ⇒ Object
Returns the value of attribute severity
34 35 36 |
# File 'lib/view_component_css_dsl/verifier.rb', line 34 def severity @severity end |
Instance Method Details
#error? ⇒ Boolean
41 |
# File 'lib/view_component_css_dsl/verifier.rb', line 41 def error? = severity == :error |
#to_s ⇒ Object
37 38 39 |
# File 'lib/view_component_css_dsl/verifier.rb', line 37 def to_s "#{component.name || component.inspect} [#{check}] #{severity}: #{}" end |