Sha256: 62ef060bec21d120dcc1c7ca1cef39aa074f163cff91b5e958f43e71e6e47a6f
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
module Html2rss module ItemExtractors ## # YAML usage example: # # selectors: # autor: # extractor: static # static: Foobar # # Would return: # 'Foobar' class Static def initialize(_xml, options) @options = options end # Returns what options[:static] holds. # # options = { static: 'Foobar' } # Static.new(xml, options).get # # => 'Foobar' def get @options[:static] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
html2rss-0.9.0 | lib/html2rss/item_extractors/static.rb |
html2rss-0.8.2 | lib/html2rss/item_extractors/static.rb |