Class: RBridge::SymbolR
- Inherits:
-
Object
- Object
- RBridge::SymbolR
- Defined in:
- lib/r_bridge/r_bridge_ffi.rb
Instance Attribute Summary collapse
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(str) ⇒ SymbolR
constructor
A new instance of SymbolR.
- #to_r_symbol ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(str) ⇒ SymbolR
Returns a new instance of SymbolR.
416 417 418 |
# File 'lib/r_bridge/r_bridge_ffi.rb', line 416 def initialize( str ) @val = str end |
Instance Attribute Details
#val ⇒ Object (readonly)
Returns the value of attribute val.
414 415 416 |
# File 'lib/r_bridge/r_bridge_ffi.rb', line 414 def val @val end |
Instance Method Details
#to_r_symbol ⇒ Object
424 425 426 |
# File 'lib/r_bridge/r_bridge_ffi.rb', line 424 def to_r_symbol return ::RBridge.r_lang_symbol(@val) end |
#to_s ⇒ Object
420 421 422 |
# File 'lib/r_bridge/r_bridge_ffi.rb', line 420 def to_s return @val end |