Top Level Namespace

Defined Under Namespace

Modules: Transproc

Instance Method Summary collapse

Instance Method Details

#Transproc(fn, *args) ⇒ Object



37
38
39
40
41
42
# File 'lib/transproc.rb', line 37

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