Module: Parts::Part
- Included in:
- EpiloguePart, FilePart, ParamPart
- Defined in:
- lib/parts.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(boundary, name, value) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/parts.rb', line 3 def self.new(boundary, name, value) if value.respond_to? :content_type FilePart.new(boundary, name, value) else ParamPart.new(boundary, name, value) end end |
Instance Method Details
#length ⇒ Object
11 12 13 |
# File 'lib/parts.rb', line 11 def length @part.length end |
#to_io ⇒ Object
15 16 17 |
# File 'lib/parts.rb', line 15 def to_io @io end |