Rserve::REXP::GenericVector

Attributes

payload[R]

Public Class Methods

new(list, attr=nil) click to toggle source
# File lib/rserve/rexp/genericvector.rb, line 5
def initialize(list, attr=nil)
  super(attr)
  @payload=list.nil? ? Rlist.new() : list
  if (attr.nil? and payload.named? )
    @attr = REXP::List.new(
    Rlist.new([REXP::String.new(payload.keys())],
    ["names"]));
  end
end

Public Instance Methods

as_list() click to toggle source
# File lib/rserve/rexp/genericvector.rb, line 23
def as_list
  @payload
end
length() click to toggle source
# File lib/rserve/rexp/genericvector.rb, line 14
def length
  @payload.size
end
list?() click to toggle source
# File lib/rserve/rexp/genericvector.rb, line 17
def list?
  true
end
recursive?() click to toggle source
# File lib/rserve/rexp/genericvector.rb, line 20
def recursive?
  true
end
to_ruby_internal() click to toggle source
# File lib/rserve/rexp/genericvector.rb, line 26
def to_ruby_internal
  @payload.to_ruby
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.