Class: Method

Inherits:
Object show all
Includes:
Nydp::Converter
Defined in:
lib/nydp/core_ext.rb

Instance Method Summary collapse

Methods included from Nydp::Converter

#n2r, #r2n

Instance Method Details

#invoke(vm, args) ⇒ Object



15
# File 'lib/nydp/core_ext.rb', line 15

def invoke   vm, args       ; vm.push_arg call(*(args.map { |a| n2r a}))._nydp_wrapper  ; end

#invoke_1(vm) ⇒ Object



11
# File 'lib/nydp/core_ext.rb', line 11

def invoke_1 vm             ; vm.push_arg call._nydp_wrapper                            ; end

#invoke_2(vm, a0) ⇒ Object



12
# File 'lib/nydp/core_ext.rb', line 12

def invoke_2 vm, a0         ; vm.push_arg call(n2r(a0))._nydp_wrapper                   ; end

#invoke_3(vm, a0, a1) ⇒ Object



13
# File 'lib/nydp/core_ext.rb', line 13

def invoke_3 vm, a0, a1     ; vm.push_arg call(n2r(a0), n2r(a1))._nydp_wrapper          ; end

#invoke_4(vm, a0, a1, a2) ⇒ Object



14
# File 'lib/nydp/core_ext.rb', line 14

def invoke_4 vm, a0, a1, a2 ; vm.push_arg call(n2r(a0), n2r(a1), n2r(a2))._nydp_wrapper ; end