Class: Binary

Inherits:
Combinator show all
Defined in:
lib/hivemind/combinators.rb

Direct Known Subclasses

And, Or

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Combinator

#&, #|

Constructor Details

#initialize(first, second) ⇒ Binary

Returns a new instance of Binary.



49
50
51
# File 'lib/hivemind/combinators.rb', line 49

def initialize(first, second)
  @first, @second = first, second
end

Instance Attribute Details

#firstObject

Returns the value of attribute first.



47
48
49
# File 'lib/hivemind/combinators.rb', line 47

def first
  @first
end

#secondObject

Returns the value of attribute second.



47
48
49
# File 'lib/hivemind/combinators.rb', line 47

def second
  @second
end