Class: Protocol::HTTP::Headers::Multiple
- Inherits:
- 
      Array
      
        - Object
- Array
- Protocol::HTTP::Headers::Multiple
 
- Defined in:
- lib/protocol/http/headers.rb
Overview
Header value which is split by newline charaters (e.g. cookies).
Instance Method Summary collapse
- 
  
    
      #initialize(value)  ⇒ Multiple 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Multiple. 
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ Multiple
Returns a new instance of Multiple.
| 46 47 48 49 50 | # File 'lib/protocol/http/headers.rb', line 46 def initialize(value) super() self << value end | 
Instance Method Details
#to_s ⇒ Object
| 52 53 54 | # File 'lib/protocol/http/headers.rb', line 52 def to_s join("\n") end |