class Chef::Knife::Core::CookbookSiteStreamingUploader::StringPart

Public Class Methods

new(str) click to toggle source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 188
def initialize(str)
  @str = str
end

Public Instance Methods

read(offset, how_much) click to toggle source

read the specified amount from the string starting at the offset

# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 197
def read(offset, how_much)
  @str[offset, how_much]
end
size() click to toggle source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 192
def size
  @str.length
end