Class: NilClass

Inherits:
Object show all
Includes:
Rupture::Sequence
Defined in:
lib/rupture/seq.rb

Instance Method Summary collapse

Methods included from Rupture::Sequence

#concat, #conj, #count, #divide, #doall, #drop, #drop_last, #drop_while, #each, #empty?, #every?, #filter, #flatten, #foldr, #frequencies, #into, #last, #map, #map_indexed, #mapcat, #next, #not_empty, #nth, #partition, #partition_all, #partition_between, #partition_by, #reduce, #reductions, #remove, #reverse, #second, #separate, #sequential?, #some, #sort, #sort_by, #split_at, #split_with, #take, #take_last, #take_while, #tree_seq

Instance Method Details

#firstObject



50
51
52
# File 'lib/rupture/seq.rb', line 50

def first
  nil
end

#restObject



54
55
56
# File 'lib/rupture/seq.rb', line 54

def rest
  Rupture::Seq::Empty
end

#seqObject



46
47
48
# File 'lib/rupture/seq.rb', line 46

def seq
  nil
end