note that there is nothing remotely ole specific about this class. it simply provides the dir like sequential access methods on top of an array.
# File lib/ole/storage/file_system.rb, line 368 def close @closed = true end
# File lib/ole/storage/file_system.rb, line 363 def each(&block) raise IOError if @closed @entries.each(&block) end
# File lib/ole/storage/file_system.rb, line 358 def pos raise IOError if @closed @pos end
# File lib/ole/storage/file_system.rb, line 379 def pos= pos raise IOError if @closed @pos = [[0, pos].max, @entries.length].min end
# File lib/ole/storage/file_system.rb, line 372 def read raise IOError if @closed @entries[pos] ensure @pos += 1 if pos < @entries.length end
Generated with the Darkfish Rdoc Generator 2.