Class: Nydp::Builtin::Apply

Inherits:
Object show all
Includes:
Base, Helper, Singleton
Defined in:
lib/nydp/builtin/apply.rb

Instance Method Summary collapse

Methods included from Helper

#cons, #list, #literal?, #pair?, #sig, #sym, #sym?

Methods included from Converter

#n2r, #r2n, #rubify

Methods included from Base

#call, #handle_error, ignore_errors, #inspect, #name, #nydp_type, #to_s

Instance Method Details

#builtin_call(arg, *args) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/nydp/builtin/apply.rb', line 4

def builtin_call arg, *args
  # original_args = args.dup
  cc            = args.pop
  cc            = [] if cc == nil
  dd            = cc.to_a
  aa            = args.concat(dd)

  arg.call(*aa)._nydp_wrapper
end