Class: Renjin::Function

Inherits:
RubySexp show all
Defined in:
lib/JRubyR/function.rb

Overview

Direct Known Subclasses

Closure, Primitive

Instance Attribute Summary

Attributes included from RBSexp

#attr, #rvar, #scope, #sexp

Instance Method Summary collapse

Methods inherited from RubySexp

build, #fassign, #initialize, #to_string

Methods included from RBSexp

#destroy, #pp, #print, #r, #rclass, #sexp?, #typeof, #unbind

Constructor Details

This class inherits a constructor from Renjin::RubySexp

Instance Method Details

#call(*args) ⇒ Object



38
39
40
41
# File 'lib/JRubyR/function.rb', line 38

def call(*args)
  args = R.parse(*args)
  R.eval("#{r}(#{args})")
end