Class: Regexer::Utils::Handlers::QuantifierOptionsHandler::Base

Inherits:
BaseHandler
  • Object
show all
Defined in:
lib/regexer/utils/handlers/quantifier_options_handlers/base.rb

Overview

The base class for the quantifier options handler

Instance Method Summary collapse

Methods inherited from BaseHandler

#handle

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