class FileFM::StreamingUploader::StringPart

Public Class Methods

new(str) click to toggle source
# File lib/filefm/streaming_uploader.rb, line 130
def initialize(str)
  @str = str
end

Public Instance Methods

read(offset, how_much) click to toggle source

read the specified amount from the string startiung at the offset

# File lib/filefm/streaming_uploader.rb, line 139
def read(offset, how_much)
  @str[offset, how_much]
end
size() click to toggle source
# File lib/filefm/streaming_uploader.rb, line 134
def size
  @str.length
end