Class: GroupingRules
Direct Known Subclasses
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
Methods inherited from Rules
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
5 6 7 |
# File 'lib/jirametrics/grouping_rules.rb', line 5 def color @color end |
#label ⇒ Object
Returns the value of attribute label.
4 5 6 |
# File 'lib/jirametrics/grouping_rules.rb', line 4 def label @label end |
Instance Method Details
#eql?(other) ⇒ Boolean
7 8 9 |
# File 'lib/jirametrics/grouping_rules.rb', line 7 def eql? other other.label == @label && other.color == @color end |
#group ⇒ Object
11 12 13 |
# File 'lib/jirametrics/grouping_rules.rb', line 11 def group [@label, @color] end |