Sha256: 3700eae18c262bf77dd9e453bf4ec5432bf9c3a78b62dd7195f2f840212b992c
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
module Rserve class REXP class GenericVector < REXP::Vector attr_reader :payload 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 def length @payload.size end def list? true end def recursive? true end def as_list @payload end def to_ruby @payload.to_ruby end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rserve-client-0.1.8 | lib/rserve/rexp/genericvector.rb |