Class: Rserve::REXP::Symbol
Constant Summary
Constants inherited
from Rserve::REXP
MaxDebugItems, MismatchError
Instance Attribute Summary collapse
Attributes inherited from Vector
#payload
Attributes inherited from Rserve::REXP
#attr
Instance Method Summary
collapse
Methods inherited from Vector
#==, #length, #na?, #to_a, #to_ruby_internal, #vector?
#as_bytes, #as_double, #as_double_matrix, #as_doubles, #as_factor, #as_float, #as_floats, #as_integer, #as_integers, #as_list, #as_matrix, #as_nested_array, #complex?, create_data_frame, #dim, #environment?, #expression?, #factor?, #get_attribute, #has_attribute?, #inherits?, #integer?, #language?, #length, #list?, #logical?, #na?, #null?, #numeric?, #pair_list?, #raw?, #recursive?, #reference?, #split_array, #string?, #to_f, #to_i, #to_ruby_internal, #vector?
Constructor Details
#initialize(name) ⇒ Symbol
Returns a new instance of Symbol.
5
6
7
8
|
# File 'lib/rserve/rexp/symbol.rb', line 5
def initialize(name)
super()
@name= (name.nil?) ? "" : name
end
|
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4
5
6
|
# File 'lib/rserve/rexp/symbol.rb', line 4
def name
@name
end
|
Instance Method Details
#as_string ⇒ Object
12
13
14
|
# File 'lib/rserve/rexp/symbol.rb', line 12
def as_string
@name
end
|
#as_strings ⇒ Object
15
16
17
|
# File 'lib/rserve/rexp/symbol.rb', line 15
def as_strings
[@name]
end
|
#symbol? ⇒ Boolean
9
10
11
|
# File 'lib/rserve/rexp/symbol.rb', line 9
def symbol?
true
end
|
#to_debug_string ⇒ Object
21
22
23
|
# File 'lib/rserve/rexp/symbol.rb', line 21
def to_debug_string
super+"["+name+"]"
end
|
#to_ruby ⇒ Object
24
25
26
|
# File 'lib/rserve/rexp/symbol.rb', line 24
def to_ruby
@name
end
|
#to_s ⇒ Object
18
19
20
|
# File 'lib/rserve/rexp/symbol.rb', line 18
def to_s
super+"["+name+"]"
end
|