Class: Regexer::Utils::Handlers::QuantifierOptionsHandler::Base
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- Regexer::Utils::Handlers::QuantifierOptionsHandler::Base
- Defined in:
- lib/regexer/utils/handlers/quantifier_options_handlers/base.rb
Overview
The base class for the quantifier options handler
Direct Known Subclasses
ExactlyOptionHandler, MinMaxOptionHandler, MinimumOptionHandler, NoOptionHandler
Instance Method Summary collapse
Methods inherited from BaseHandler
Instance Method Details
#give_to_next_handler(value) ⇒ Object
17 18 19 |
# File 'lib/regexer/utils/handlers/quantifier_options_handlers/base.rb', line 17 def give_to_next_handler(value) @next_handler&.handle(value) if @next_handler end |
#next_handler(handler) ⇒ Object
11 12 13 14 15 |
# File 'lib/regexer/utils/handlers/quantifier_options_handlers/base.rb', line 11 def next_handler(handler) @next_handler = handler handler end |