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
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/transproc.rb', line 81 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 |