Top Level Namespace
Defined Under Namespace
Modules: Transproc
Instance Method Summary collapse
-
#Transproc(fn, *args) ⇒ Function
Access registered functions.
Instance Method Details
#Transproc(fn, *args) ⇒ Function
Access registered functions
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/transproc.rb', line 65 def Transproc(fn, *args) case fn when Proc then Transproc::Function.new(fn, args: args) when Symbol fun = Transproc[fn] case fun when Transproc::Function, Transproc::Composite then fun else Transproc::Function.new(fun, args: args) end end end |