Method: Html2rss::AttributePostProcessors::Base#initialize
- Defined in:
- lib/html2rss/attribute_post_processors/base.rb
permalink #initialize(value, context) ⇒ Base
Initializes the post processor
54 55 56 57 58 59 60 61 62 |
# File 'lib/html2rss/attribute_post_processors/base.rb', line 54 def initialize(value, context) klass = self.class # TODO: get rid of Hash klass.assert_type(context, [Item::Context, Hash], 'context', context:) klass.validate_args!(value, context) @value = value @context = context end |