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.



11
12
13
14
15
# File 'lib/protocol/http/header/multiple.rb', line 11

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

Instance Method Details

#to_sObject



17
18
19
# File 'lib/protocol/http/header/multiple.rb', line 17

def to_s
	join("\n")
end