Method: Protocol::HTTP::Body::File#join

Defined in:
lib/protocol/http/body/file.rb

#joinObject



82
83
84
85
86
87
88
89
90
# File 'lib/protocol/http/body/file.rb', line 82

def join
  return "" if @remaining == 0
  
  buffer = @file.read(@remaining)
  
  @remaining = 0
  
  return buffer
end