Module: Necromancy::Control::Category
Instance Method Summary collapse
-
#<(callable) ⇒ Necromancy
Right-to-left composition.
-
#>(callable) ⇒ Necromancy
Left-to-right composition.
Methods included from Necromancy::Control
[], call, extended, hiding, new, using
Instance Method Details
#<(callable) ⇒ Necromancy
Note:
- self
-
b -> c
Right-to-left composition
32 33 34 35 36 |
# File 'lib/necromancy/control/category.rb', line 32 def <(callable) str = make_evaluable_string(callable) necromancy = "args = (#{str}); #{@necromancy}" self.class.new(necromancy, @references.dup) end |
#>(callable) ⇒ Necromancy
Note:
- self
-
a -> b
Left-to-right composition.
17 18 19 20 21 |
# File 'lib/necromancy/control/category.rb', line 17 def >(callable) str = make_evaluable_string(callable) necromancy = "args = (#{@necromancy}); #{str}" self.class.new(necromancy, @references.dup) end |