Class: Protocol::HTTP::Headers::Split
- Inherits:
-
Array
- Object
- Array
- Protocol::HTTP::Headers::Split
- Defined in:
- lib/protocol/http/headers.rb
Overview
Split by commas.
Constant Summary collapse
- COMMA =
/\s*,\s*/
Instance Method Summary collapse
- #<<(value) ⇒ Object
-
#initialize(value) ⇒ Split
constructor
A new instance of Split.
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#<<(value) ⇒ Object
33 34 35 |
# File 'lib/protocol/http/headers.rb', line 33 def << value super value.split(COMMA) end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/protocol/http/headers.rb', line 37 def to_s join(", ") end |