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.
11 12 13 14 15 |
# File 'lib/protocol/http/header/multiple.rb', line 11 def initialize(value) super() self << value end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/protocol/http/header/multiple.rb', line 17 def to_s join("\n") end |