Class: Decider::Right

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#deconstructObject



35
36
37
# File 'lib/decider.rb', line 35

def deconstruct
  [:right, value]
end