Class: Protocol::HTTP::Header::Multiple
- Inherits:
-
Array
- Object
- Array
- Protocol::HTTP::Header::Multiple
- Defined in:
- lib/protocol/http/header/multiple.rb
Overview
Header value which is split by newline charaters (e.g. cookies).
Direct Known Subclasses
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.
28 29 30 31 32 |
# File 'lib/protocol/http/header/multiple.rb', line 28 def initialize(value) super() self << value end |
Instance Method Details
#to_s ⇒ Object
34 35 36 |
# File 'lib/protocol/http/header/multiple.rb', line 34 def to_s join("\n") end |