Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Chef::StreamingCookbookUploader::StringPart

Public Class Methods

new(str) click to toggle source
# File lib/chef/streaming_cookbook_uploader.rb, line 141
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/streaming_cookbook_uploader.rb, line 150
def read(offset, how_much)
  @str[offset, how_much]
end
size() click to toggle source
# File lib/chef/streaming_cookbook_uploader.rb, line 145
def size
  @str.length
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.