Method: ZunScript::ZExternBlock#call

Defined in:
lib/zunscript/block.rb

#call(args) ⇒ Object



54
55
56
57
58
59
60
61
62
# File 'lib/zunscript/block.rb', line 54

def call args
  res = @receiver.send @method, *(@args + parse_args(args))
  case res
  when Fixnum, Float
    return ZNum.new res, @env
  when String
    return ZString.new res, @env
  end
end