Class: Zazicki::Loader
- Inherits:
-
Object
- Object
- Zazicki::Loader
- Defined in:
- lib/zazicki/loader.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(klass, app, *args, &block) ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
#initialize(klass, app, *args, &block) ⇒ Loader
Returns a new instance of Loader.
3 4 5 6 7 8 |
# File 'lib/zazicki/loader.rb', line 3 def initialize(klass, app, *args, &block) @klass = klass @app = app @args = args @block = block end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 |
# File 'lib/zazicki/loader.rb', line 10 def call(env) @klass.constantize.new(@app, *@args, &@block).call(env) end |