Method: Html2rss::RequestService#register_strategy
- Defined in:
- lib/html2rss/request_service.rb
permalink #register_strategy(name, strategy_class) ⇒ Object
Registers a new strategy.
59 60 61 62 63 |
# File 'lib/html2rss/request_service.rb', line 59 def register_strategy(name, strategy_class) raise ArgumentError, 'Strategy class must be a Class' unless strategy_class.is_a?(Class) @strategies[name.to_sym] = strategy_class end |