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
43 44 45 |
# File 'lib/http/protocol/headers.rb', line 43 def << value super value.split(COMMA) end |
#to_s ⇒ Object
47 48 49 |
# File 'lib/http/protocol/headers.rb', line 47 def to_s join(", ") end |