Method: Html2rss::AttributePostProcessors::Template#initialize
- Defined in:
- lib/html2rss/attribute_post_processors/template.rb
#initialize(value, context) ⇒ Template
Returns a new instance of Template.
45 46 47 48 49 50 51 |
# File 'lib/html2rss/attribute_post_processors/template.rb', line 45 def initialize(value, context) super @options = context[:options] || {} @item = context[:item] @string = @options[:string].to_s end |