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

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

Overview

Split by newline charaters.

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Multiple

Returns a new instance of Multiple.



44
45
46
47
48
# File 'lib/protocol/http/headers.rb', line 44

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

Instance Method Details

#to_sObject



50
51
52
# File 'lib/protocol/http/headers.rb', line 50

def to_s
	join("\n")
end