class NilClass

Public Instance Methods

each() click to toggle source
# File lib/apricot/ruby_ext.rb, line 239
def each
end
empty?() click to toggle source
# File lib/apricot/ruby_ext.rb, line 242
def empty?
  true
end
first() click to toggle source
# File lib/apricot/ruby_ext.rb, line 254
def first
  nil
end
next() click to toggle source
# File lib/apricot/ruby_ext.rb, line 258
def next
  nil
end
rest() click to toggle source
# File lib/apricot/ruby_ext.rb, line 262
def rest
  Apricot::List::EMPTY_LIST
end
to_seq() click to toggle source

Seq Methods Many functions that return seqs occasionally return nil, so it’s convenient if nil can respond to some of the same methods as seqs.

# File lib/apricot/ruby_ext.rb, line 250
def to_seq
  nil
end