123456789_123456789_123456789_123456789_123456789_

Class: Rack::Multipart::ParamList

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/rack/multipart.rb

Overview

Accumulator for multipart form data, conforming to the QueryParser API. In future, the Parser could return the pair list directly, but that would change its API.

Class Method Summary

Instance Method Summary

Constructor Details

.newParamList

[ GitHub ]

  
# File 'lib/rack/multipart.rb', line 34

def initialize
  @pairs = []
end

Class Method Details

.make_params

[ GitHub ]

  
# File 'lib/rack/multipart.rb', line 26

def self.make_params
  new
end

.normalize_params(params, key, value)

[ GitHub ]

  
# File 'lib/rack/multipart.rb', line 30

def self.normalize_params(params, key, value)
  params << [key, value]
end

Instance Method Details

#<<(pair)

[ GitHub ]

  
# File 'lib/rack/multipart.rb', line 38

def <<(pair)
  @pairs << pair
end

#to_params_hash

[ GitHub ]

  
# File 'lib/rack/multipart.rb', line 42

def to_params_hash
  @pairs
end