Method: DR::CoreExt::Proc#compose

Defined in:
lib/dr/ruby_ext/core_modules.rb

#compose(g) ⇒ Object

return self o g f.compose(g).(5,6)



265
266
267
268
269
# File 'lib/dr/ruby_ext/core_modules.rb', line 265

def compose(g)
  lambda do |*a,&b|
    self.call(*g.call(*a,&b))
  end
end