Class: HTTP::Protocol::Headers::Split
- Inherits:
-
Array
- Object
- Array
- HTTP::Protocol::Headers::Split
- Defined in:
- lib/http/protocol/headers.rb
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
42 43 44 |
# File 'lib/http/protocol/headers.rb', line 42 def << value super value.split(COMMA) end |
#to_s ⇒ Object
46 47 48 |
# File 'lib/http/protocol/headers.rb', line 46 def to_s join(", ") end |