Class: RBridge::SymbolR

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valObject (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_symbolObject


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_sObject


420
421
422
# File 'lib/r_bridge/r_bridge_ffi.rb', line 420

def to_s
  return @val
end