Class: Decider::Left
- Inherits:
-
Object
- Object
- Decider::Left
- Defined in:
- lib/decider.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #deconstruct ⇒ Object
-
#initialize(value) ⇒ Left
constructor
A new instance of Left.
Constructor Details
#initialize(value) ⇒ Left
Returns a new instance of Left.
15 16 17 |
# File 'lib/decider.rb', line 15 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
13 14 15 |
# File 'lib/decider.rb', line 13 def value @value end |
Instance Method Details
#==(other) ⇒ Object
23 24 25 |
# File 'lib/decider.rb', line 23 def ==(other) value == other.value end |
#deconstruct ⇒ Object
19 20 21 |
# File 'lib/decider.rb', line 19 def deconstruct [:left, value] end |