Class: Protocol::HTTP::Header::Multiple

Inherits:
Array
  • Object
show all
Defined in:
lib/protocol/http/header/multiple.rb

Overview

Header value which is split by newline charaters (e.g. cookies).

Direct Known Subclasses

Cookie

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Multiple

Returns a new instance of Multiple.


28
29
30
31
32
# File 'lib/protocol/http/header/multiple.rb', line 28

def initialize(value)
	super()
	
	self << value
end

Instance Method Details

#to_sObject


34
35
36
# File 'lib/protocol/http/header/multiple.rb', line 34

def to_s
	join("\n")
end