Class: Underware::BaseMW
- Inherits:
-
Object
- Object
- Underware::BaseMW
- Defined in:
- lib/underware.rb
Overview
Base class for middleware. Basically, it just demonstrates the interface that you need to support.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
8 9 10 |
# File 'lib/underware.rb', line 8 def call(*args) raise NotImplementedError end |
#to_proc ⇒ Object
12 13 14 15 |
# File 'lib/underware.rb', line 12 def to_proc __other = self ->(*args){ __other.call(*args) } end |