Module: Parts::Part
- Included in:
 - EpiloguePart, FilePart, ParamPart
 
- Defined in:
 - lib/puppet/feature/parts.rb
 
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.file?(value) ⇒ Boolean
      18 19 20  | 
    
      # File 'lib/puppet/feature/parts.rb', line 18 def self.file?(value) value.respond_to?(:content_type) && value.respond_to?(:original_filename) end  | 
  
.new(boundary, name, value, headers = {}) ⇒ Object
      9 10 11 12 13 14 15 16  | 
    
      # File 'lib/puppet/feature/parts.rb', line 9 def self.new(boundary, name, value, headers = {}) headers ||= {} # avoid nil values if file?(value) FilePart.new(boundary, name, value, headers) else ParamPart.new(boundary, name, value, headers) end end  |