Class: Decider::Right
- Inherits:
-
Object
- Object
- Decider::Right
- 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) ⇒ Right
constructor
A new instance of Right.
Constructor Details
#initialize(value) ⇒ Right
Returns a new instance of Right.
31 32 33 |
# File 'lib/decider.rb', line 31 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
29 30 31 |
# File 'lib/decider.rb', line 29 def value @value end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 |
# File 'lib/decider.rb', line 39 def ==(other) value == other.value end |
#deconstruct ⇒ Object
35 36 37 |
# File 'lib/decider.rb', line 35 def deconstruct [:right, value] end |