class RKelly::Runtime::RubyFunction
Public Class Methods
new(&block)
click to toggle source
# File lib/rkelly/runtime/ruby_function.rb, line 4 def initialize(&block) @code = block end
Public Instance Methods
call(chain, *args)
click to toggle source
# File lib/rkelly/runtime/ruby_function.rb, line 8 def call(chain, *args) @code.call(*args) end