Class: Decider::Left

Inherits:
Object
  • Object
show all
Defined in:
lib/decider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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

#deconstructObject



19
20
21
# File 'lib/decider.rb', line 19

def deconstruct
  [:left, value]
end