class Stream::EmptyStream
A Singleton class for an empty stream. EmptyStream.instance is the sole instance which answers true for both at_end? and at_beginning?
Public Instance Methods
at_beginning?()
click to toggle source
# File lib/stream.rb 172 def at_beginning? 173 true 174 end
at_end?()
click to toggle source
# File lib/stream.rb 168 def at_end? 169 true 170 end
basic_backward()
click to toggle source
# File lib/stream.rb 180 def basic_backward 181 raise EndOfStreamException 182 end
basic_forward()
click to toggle source
# File lib/stream.rb 176 def basic_forward 177 raise EndOfStreamException 178 end