Class: RBridge::RParamManager

Inherits:
Object
  • Object
show all
Defined in:
lib/r_bridge/r_bridge_lazyfunc_ext.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ RParamManager

Returns a new instance of RParamManager.



133
134
135
# File 'lib/r_bridge/r_bridge_lazyfunc_ext.rb', line 133

def initialize(hash)
  @param_hash = hash
end

Instance Attribute Details

#param_hashObject

Returns the value of attribute param_hash.



132
133
134
# File 'lib/r_bridge/r_bridge_lazyfunc_ext.rb', line 132

def param_hash
  @param_hash
end

Instance Method Details

#get_r_object(r_param) ⇒ Object



137
138
139
140
141
# File 'lib/r_bridge/r_bridge_lazyfunc_ext.rb', line 137

def get_r_object(r_param)
  raise "argument of get_r_object needs to be RParamName" if ! r_param.is_a?(RParamName)
  stored_value = @param_hash[r_param.name]
  return RBridge::convert_to_r_object(stored_value)
end