Class: Telebugs::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/telebugs/middleware.rb,
lib/telebugs/middleware/gem_root_filter.rb,
lib/telebugs/middleware/root_directory_filter.rb

Overview

Represents a middleware that can be used to filter out errors. You must inherit from this class and implement the #call method.

Direct Known Subclasses

GemRootFilter, RootDirectoryFilter

Defined Under Namespace

Classes: GemRootFilter, RootDirectoryFilter

Constant Summary collapse

DEFAULT_WEIGHT =
0

Instance Method Summary collapse

Instance Method Details

#call(_report) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/telebugs/middleware.rb', line 13

def call(_report)
  raise NotImplementedError, "You must implement the #call method"
end

#weightObject



9
10
11
# File 'lib/telebugs/middleware.rb', line 9

def weight
  DEFAULT_WEIGHT
end