Module: Iolite::Adaptor::Operators
Instance Method Summary collapse
Instance Method Details
#disjunction(rhs) ⇒ Object
||
20 21 22 23 24 |
# File 'lib/iolite/adaptor/operators.rb', line 20 def disjunction rhs Lazy.new { |*args| Functinal.invoke(self, *args) || Functinal.invoke(rhs, *args) } end |
#product(rhs) ⇒ Object
&&
13 14 15 16 17 |
# File 'lib/iolite/adaptor/operators.rb', line 13 def product rhs Lazy.new { |*args| Functinal.invoke(self, *args) && Functinal.invoke(rhs, *args) } end |