Top Level Namespace

Defined Under Namespace

Modules: Transproc

Instance Method Summary collapse

Instance Method Details

#Transproc(fn, *args) ⇒ Object



20
21
22
23
24
25
# File 'lib/transproc.rb', line 20

def Transproc(fn, *args)
  case fn
  when Proc then Transproc::Function.new(fn, args)
  when Symbol then Transproc::Function.new(Transproc[fn], args)
  end
end