class EmptyStream
Public Class Methods
new()
click to toggle source
# File lib/matilda-stream.rb, line 132 def initialize() @head = nil end
Public Instance Methods
[](n)
click to toggle source
# File lib/matilda-stream.rb, line 144 def [](n) nil end
drop(n)
click to toggle source
# File lib/matilda-stream.rb, line 156 def drop(n) EmptyStream.new end
each()
click to toggle source
# File lib/matilda-stream.rb, line 148 def each nil end
filter(&block)
click to toggle source
# File lib/matilda-stream.rb, line 168 def filter(&block) EmptyStream.new end
last()
click to toggle source
# File lib/matilda-stream.rb, line 140 def last nil end
map(&block)
click to toggle source
# File lib/matilda-stream.rb, line 164 def map(&block) EmptyStream.new end
scan(zero, &block)
click to toggle source
# File lib/matilda-stream.rb, line 172 def scan(zero, &block) Stream.new(zero) do EmptyStream.new end end
tail()
click to toggle source
# File lib/matilda-stream.rb, line 136 def tail EmptyStream.new end
take(n)
click to toggle source
# File lib/matilda-stream.rb, line 152 def take(n) EmptyStream.new end
take_while(&block)
click to toggle source
# File lib/matilda-stream.rb, line 160 def take_while(&block) EmptyStream.new end