class Chef::CookbookSiteStreamingUploader::StringPart
Public Class Methods
new(str)
click to toggle source
# File lib/chef/cookbook_site_streaming_uploader.rb, line 179 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/chef/cookbook_site_streaming_uploader.rb, line 188 def read(offset, how_much) @str[offset, how_much] end
size()
click to toggle source
# File lib/chef/cookbook_site_streaming_uploader.rb, line 183 def size @str.length end