class Chef::Knife::Core::CookbookSiteStreamingUploader::StringPart
Public Class Methods
Source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 188 def initialize(str) @str = str end
Public Instance Methods
Source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 197 def read(offset, how_much) @str[offset, how_much] end
read the specified amount from the string starting at the offset
Source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 192 def size @str.length end