Class: Protocol::HTTP::Headers::Multiple

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Multiple

Returns a new instance of Multiple.



46
47
48
49
50
# File 'lib/protocol/http/headers.rb', line 46

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

Instance Method Details

#to_sObject



52
53
54
# File 'lib/protocol/http/headers.rb', line 52

def to_s
	join("\n")
end