Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/comp/proc.rb
Instance Method Summary collapse
Instance Method Details
#*(g) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/comp/proc.rb', line 3 def *(g) if lambda? lambda { |*args, &blk| call(g.call(*args, &blk)) } else proc { |*args, &blk| call(g.call(*args, &blk)) } end end |