Class: Underware::BaseMW

Inherits:
Object
  • Object
show all
Defined in:
lib/underware.rb

Overview

Base class for middleware. Basically, it just demonstrates the interface that you need to support.

Direct Known Subclasses

Folded

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/underware.rb', line 10

def call(*args)
  raise NotImplementedError
end

#to_procObject



14
15
16
17
# File 'lib/underware.rb', line 14

def to_proc
  __other = self
  ->(*args){ __other.call(*args) }
end