Class: R::Environment
- Includes:
- IndexedObject
- Defined in:
- lib/R_interface/renvironment.rb
Overview
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#get(key) ⇒ Object
————————————————————————————–.
-
#method_missing(symbol, *args, &block) ⇒ Object
————————————————————————————–.
-
#set(key, value) ⇒ Object
————————————————————————————–.
Methods included from IndexedObject
Methods inherited from Object
#==, #_, #attr=, build, #comment, #comment=, #dim, #dim=, #dimnames, #dimnames=, #eql, #initialize, #names, #names=, #pp, #pretty_print, #rclass, #rclass=, #row__names, #row__names=, #setR, #setR_name, #to_s, #tsp, #tsp=
Constructor Details
This class inherits a constructor from R::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args, &block) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/R_interface/renvironment.rb', line 53 def method_missing(symbol, *args, &block) name = R::Support.convert_symbol2r(symbol) case when name =~ /(.*)=$/ set($1, args[0]) else super(symbol, *args, &block) end end |