Class: InciScore::Recognizer::Rules::Component
- Inherits:
-
Struct
- Object
- Struct
- InciScore::Recognizer::Rules::Component
- Defined in:
- lib/inci_score/recognizer_rules.rb
Instance Attribute Summary collapse
-
#hazard ⇒ Object
Returns the value of attribute hazard.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#hazard ⇒ Object
Returns the value of attribute hazard
10 11 12 |
# File 'lib/inci_score/recognizer_rules.rb', line 10 def hazard @hazard end |
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/inci_score/recognizer_rules.rb', line 10 def name @name end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/inci_score/recognizer_rules.rb', line 11 def to_s "#{name} (#{hazard})" end |