Module: Q::Call2
- Defined in:
- lib/q/parser.rb
Instance Method Summary collapse
Instance Method Details
#callscope(scope) ⇒ Object
499 500 501 502 503 504 505 506 507 |
# File 'lib/q/parser.rb', line 499 def callscope scope cscope = Q::Scope.new scope cscope.args = arguments.elements.map.each do |argument| argument.argument.eval(scope) end cscope end |
#eval(scope) ⇒ Object
495 496 497 |
# File 'lib/q/parser.rb', line 495 def eval scope scope['_'] = name.eval(scope).call(callscope(scope)) end |