Class: Protocol::HTTP::Header::Date

Inherits:
String
  • Object
show all
Defined in:
lib/protocol/http/header/date.rb

Instance Method Summary collapse

Instance Method Details

#<<(value) ⇒ Object



12
13
14
# File 'lib/protocol/http/header/date.rb', line 12

def << value
  replace(value)
end

#to_timeObject



16
17
18
# File 'lib/protocol/http/header/date.rb', line 16

def to_time
  ::Time.parse(self)
end