o:$YARD::CodeObjects::MethodObject:@parameters[[" parts0:@current_file_has_commentsT: @lineik:@signature"def self.build_multipart_bodies(parts) boundary = Time.now.to_i.to_s(16) body = "" parts.each do |key, value| esc_key = CGI.escape(key.to_s) body << "--#{boundary}#{CRLF}" if value.respond_to?(:read) body << "Content-Disposition: form-data; name=\"#{esc_key}\"; filename=\"#{File.basename(value.path)}\"#{"\r\n"}" body << "Content-Type: #{mime_type(value.path)}#{"\r\n"*2}" body << value.read else body << "Content-Disposition: form-data; name=\"#{esc_key}\"#{"\r\n"*2}#{value}" end body << "\r\n" end body << "--#{boundary}--#{"\r\n"*2}" { :body => body, :headers => {"Content-Type" => "multipart/form-data; boundary=#{boundary}"} } end: @files[["#lib/chunky_baconfile/client.rbik:@explicitT: @scope: class: @name:build_multipart_bodies: @source"Ãdef self.build_multipart_bodies(parts) boundary = Time.now.to_i.to_s(16) body = "" parts.each do |key, value| esc_key = CGI.escape(key.to_s) body << "--#{boundary}#{CRLF}" if value.respond_to?(:read) body << "Content-Disposition: form-data; name=\"#{esc_key}\"; filename=\"#{File.basename(value.path)}\"#{"\r\n"}" body << "Content-Type: #{mime_type(value.path)}#{"\r\n"*2}" body << value.read else body << "Content-Disposition: form-data; name=\"#{esc_key}\"#{"\r\n"*2}#{value}" end body << "\r\n" end body << "--#{boundary}--#{"\r\n"*2}" { :body => body, :headers => {"Content-Type" => "multipart/form-data; boundary=#{boundary}"} } end:@visibility: public:@docstringIC:YARD::Docstring".Build multi-part POST form data from file :@line_rangeo: Range: beginig: exclF:endij: @all[ ".Build multi-part POST form data from file""C@param [Hash] parts keys/values of items to convert for upload".@return [Hash] encoded form data for POST:@ref_tags[: @tags[o:YARD::Tags::Tag : @types[" Hash;" parts:@tag_name" param: @text"/keys/values of items to convert for upload: @objectu:YARD::StubProxy3ChunkyBaconfile::Client.build_multipart_bodieso; ;[" Hash;0;" return; "encoded form data for POST;!u;"3ChunkyBaconfile::Client.build_multipart_bodies;!u;"3ChunkyBaconfile::Client.build_multipart_bodies:@namespaceu;"ChunkyBaconfile::Client:@source_type: ruby;[