Class: Quality
- Inherits:
-
Object
- Object
- Quality
- Defined in:
- lib/catlogic/quality.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(quality) ⇒ Quality
constructor
A new instance of Quality.
- #opposite ⇒ Object
Constructor Details
#initialize(quality) ⇒ Quality
Returns a new instance of Quality.
4 5 6 |
# File 'lib/catlogic/quality.rb', line 4 def initialize(quality) @label = quality end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
2 3 4 |
# File 'lib/catlogic/quality.rb', line 2 def label @label end |