Parent

Rserve::REXP::Null

represents a NULL object in R. Note: there is a slight asymmetry - in R NULL is represented by a zero-length pairlist. For this reason REXPNull returns true for {@link #isList()} and {@link #asList()} will return an empty list. Nonetheless REXPList of the length 0 will NOT return true in {@link #isNull()} (currently), becasue it is considered a different object in Java. These nuances are still subject to change, because it’s not clear how it should be treated. At any rate use REXPNull instead of empty REXPList if NULL is the intended value.

Public Instance Methods

==(v) click to toggle source
# File lib/rserve/rexp/null.rb, line 9
def ==(v)
  v.is_a? self.class
end
as_list() click to toggle source
# File lib/rserve/rexp/null.rb, line 15
def as_list
  Rlist.new
end
list?() click to toggle source
# File lib/rserve/rexp/null.rb, line 12
def list?
  true
end
null?() click to toggle source
# File lib/rserve/rexp/null.rb, line 6
def null?
  true
end
to_ruby() click to toggle source
# File lib/rserve/rexp/null.rb, line 18
def to_ruby
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.