module Tins::Interpreter
def interpret(source, *args)
A.new.interpret('|a,b| a + b + c', 1, 2) # => 6
end
end
3
def c
include Tins::Interpreter
class A
the *args can be fetched:
A small example explains how the method is supposed to be used and how
*args into the block.
Interpret the string _source_ as a body of a block, while passing
def interpret(source, *args) interpret_with_binding(source, binding, *args) end