Class: Binary
- Inherits:
-
Combinator
- Object
- Combinator
- Binary
- Defined in:
- lib/hivemind/combinators.rb
Instance Attribute Summary collapse
-
#first ⇒ Object
Returns the value of attribute first.
-
#second ⇒ Object
Returns the value of attribute second.
Instance Method Summary collapse
-
#initialize(first, second) ⇒ Binary
constructor
A new instance of Binary.
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
#first ⇒ Object
Returns the value of attribute first.
47 48 49 |
# File 'lib/hivemind/combinators.rb', line 47 def first @first end |
#second ⇒ Object
Returns the value of attribute second.
47 48 49 |
# File 'lib/hivemind/combinators.rb', line 47 def second @second end |