Class: Telebugs::Middleware
- Inherits:
-
Object
- Object
- Telebugs::Middleware
- 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
Defined Under Namespace
Classes: GemRootFilter, RootDirectoryFilter
Constant Summary collapse
- DEFAULT_WEIGHT =
0
Instance Method Summary collapse
Instance Method Details
#call(_report) ⇒ Object
13 14 15 |
# File 'lib/telebugs/middleware.rb', line 13 def call(_report) raise NotImplementedError, "You must implement the #call method" end |
#weight ⇒ Object
9 10 11 |
# File 'lib/telebugs/middleware.rb', line 9 def weight DEFAULT_WEIGHT end |