Class: Html2rss::AttributePostProcessors::ParseTime
- Inherits:
-
Object
- Object
- Html2rss::AttributePostProcessors::ParseTime
- Defined in:
- lib/html2rss/attribute_post_processors/parse_time.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(value, _options, _item) ⇒ ParseTime
constructor
A new instance of ParseTime.
Constructor Details
#initialize(value, _options, _item) ⇒ ParseTime
Returns a new instance of ParseTime.
4 5 6 |
# File 'lib/html2rss/attribute_post_processors/parse_time.rb', line 4 def initialize(value, , _item) @value = value end |
Instance Method Details
#get ⇒ Object
8 9 10 |
# File 'lib/html2rss/attribute_post_processors/parse_time.rb', line 8 def get Time.parse(@value).rfc822 end |