Class makes a string into a stream-like object
Implement read so that this class can be treated as a stream.
# File lib/gdata/http/mime_body.rb, line 81 def read(bytes_requested) if @bytes_read == @string.length return false elsif bytes_requested > @string.length - @bytes_read bytes_requested = @string.length - @bytes_read end buffer = @string[@bytes_read, bytes_requested] @bytes_read += bytes_requested return buffer end
Generated with the Darkfish Rdoc Generator 2.