Class: Regexer::Utils::Handlers::AnyCharacterInInputValueHandlers::Base

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

Overview

The base class for the handling of input values of has_any_character_in method

Instance Method Summary collapse

Methods inherited from BaseHandler

#handle

Instance Method Details

#give_to_next_handler(value) ⇒ Object



18
19
20
# File 'lib/regexer/utils/handlers/any_character_in_input_value_handlers/base.rb', line 18

def give_to_next_handler(value)
  @next_handler&.handle(value) if @next_handler
end

#next_handler(handler) ⇒ Object



12
13
14
15
16
# File 'lib/regexer/utils/handlers/any_character_in_input_value_handlers/base.rb', line 12

def next_handler(handler)
  @next_handler = handler

  handler
end