Class: Html2rss::ItemExtractors::CurrentTime
- Inherits:
-
Object
- Object
- Html2rss::ItemExtractors::CurrentTime
- Defined in:
- lib/html2rss/item_extractors/current_time.rb
Overview
Returns the current Time.
YAML usage example:
selectors:
updated:
extractor: current_time
Instance Method Summary collapse
- #get ⇒ Time
-
#initialize(_xml, _options) ⇒ CurrentTime
constructor
A new instance of CurrentTime.
Constructor Details
#initialize(_xml, _options) ⇒ CurrentTime
Returns a new instance of CurrentTime
12 |
# File 'lib/html2rss/item_extractors/current_time.rb', line 12 def initialize(_xml, ); end |
Instance Method Details
#get ⇒ Time
16 17 18 |
# File 'lib/html2rss/item_extractors/current_time.rb', line 16 def get Time.new end |