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