Method: NodeRunner#method_missing

Defined in:
lib/node-runner.rb

#method_missing(m, *args, &block) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/node-runner.rb', line 19

def method_missing(m, *args, &block)
  @function_name = m
  if block
    @source = encode(block.call.strip)
  end
  @args = *args
  exec
end