class GV::Valley::FileServer::FileSystem
Constants
- CHUNKSIZE
Public Class Methods
new(path)
click to toggle source
# File lib/gv/valley/file_server.rb, line 18 def initialize(path) @path = path end
Public Instance Methods
get() { |read(CHUNKSIZE) until eof?| ... }
click to toggle source
# File lib/gv/valley/file_server.rb, line 22 def get open(@path, 'rb') do |file| yield file.read(CHUNKSIZE) until file.eof? end end