Class: Rserve::REXP::Unknown

Inherits:
Rserve::REXP show all
Defined in:
lib/rserve/rexp/unknown.rb

Constant Summary

Constants inherited from Rserve::REXP

MaxDebugItems, MismatchError

Instance Attribute Summary collapse

Attributes inherited from Rserve::REXP

#attr

Instance Method Summary collapse

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

#typeObject (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_internalObject



12
13
14
# File 'lib/rserve/rexp/unknown.rb', line 12

def to_ruby_internal
  @type.to_s
end

#to_sObject



9
10
11
# File 'lib/rserve/rexp/unknown.rb', line 9

def to_s
  super()+"[#{@type}]"
end