Class: Regexer::Utils::Handlers::BaseHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/regexer/utils/handlers/base_handler.rb

Overview

A Base interface class for handlers

Instance Method Summary collapse

Instance Method Details

#handleObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/regexer/utils/handlers/base_handler.rb', line 8

def handle
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#next_handler(_handler) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/regexer/utils/handlers/base_handler.rb', line 12

def next_handler(_handler)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end