Class: Protocol::HTTP::Headers::Multiple
- Inherits:
-
Array
- Object
- Array
- Protocol::HTTP::Headers::Multiple
- Defined in:
- lib/protocol/http/headers.rb
Overview
Split by newline charaters.
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.
44 45 46 47 48 |
# File 'lib/protocol/http/headers.rb', line 44 def initialize(value) super() self << value end |
Instance Method Details
#to_s ⇒ Object
50 51 52 |
# File 'lib/protocol/http/headers.rb', line 50 def to_s join("\n") end |