Class: ViewComponentCssDsl::Verifier::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/view_component_css_dsl/verifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checkObject

Returns the value of attribute check

Returns:

  • (Object)

    the current value of check



38
39
40
# File 'lib/view_component_css_dsl/verifier.rb', line 38

def check
  @check
end

#componentObject

Returns the value of attribute component

Returns:

  • (Object)

    the current value of component



38
39
40
# File 'lib/view_component_css_dsl/verifier.rb', line 38

def component
  @component
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



38
39
40
# File 'lib/view_component_css_dsl/verifier.rb', line 38

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



38
39
40
# File 'lib/view_component_css_dsl/verifier.rb', line 38

def severity
  @severity
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


45
# File 'lib/view_component_css_dsl/verifier.rb', line 45

def error? = severity == :error

#to_sObject



41
42
43
# File 'lib/view_component_css_dsl/verifier.rb', line 41

def to_s
  "#{component.name || component.inspect} [#{check}] #{severity}: #{message}"
end