Class: Protocol::HTTP::Header::Date
- Inherits:
-
String
- Object
- String
- Protocol::HTTP::Header::Date
- 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_time ⇒ Object
16 17 18 |
# File 'lib/protocol/http/header/date.rb', line 16 def to_time ::Time.parse(self) end |