Class: Rserve::REXP::Unknown
- Inherits:
-
Rserve::REXP
- Object
- Rserve::REXP
- Rserve::REXP::Unknown
- Defined in:
- lib/rserve/rexp/unknown.rb
Constant Summary
Constants inherited from Rserve::REXP
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Rserve::REXP
Instance Method Summary collapse
-
#initialize(type, attr = nil) ⇒ Unknown
constructor
A new instance of Unknown.
- #to_ruby_internal ⇒ Object
- #to_s ⇒ Object
Methods inherited from Rserve::REXP
#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, #as_string, #as_strings, #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?, #symbol?, #to_debug_string, #to_f, #to_i, #to_ruby, #vector?
Constructor Details
#initialize(type, attr = nil) ⇒ Unknown
Returns a new instance of Unknown.
5 6 7 8 |
# File 'lib/rserve/rexp/unknown.rb', line 5 def initialize(type,attr=nil) @type=type super(attr) end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/rserve/rexp/unknown.rb', line 4 def type @type end |
Instance Method Details
#to_ruby_internal ⇒ Object
12 13 14 |
# File 'lib/rserve/rexp/unknown.rb', line 12 def to_ruby_internal @type.to_s end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/rserve/rexp/unknown.rb', line 9 def to_s super()+"[#{@type}]" end |