Module: Hurley::Multipart::Part
- Included in:
- EpiloguePart, FilePart, ParamPart
- Defined in:
- lib/hurley/multipart.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.file?(value) ⇒ Boolean
69 70 71 |
# File 'lib/hurley/multipart.rb', line 69 def self.file?(value) value.respond_to?(:content_type) && value.respond_to?(:original_filename) end |
Instance Method Details
#to_io ⇒ Object
73 74 75 |
# File 'lib/hurley/multipart.rb', line 73 def to_io @io end |