Class: RubyApp::Rack::Memory
- Inherits:
-
Object
- Object
- RubyApp::Rack::Memory
- Defined in:
- lib/ruby_app/rack/memory.rb
Instance Method Summary collapse
- #call(environment) ⇒ Object
-
#initialize(application) ⇒ Memory
constructor
A new instance of Memory.
Constructor Details
#initialize(application) ⇒ Memory
Returns a new instance of Memory.
8 9 10 |
# File 'lib/ruby_app/rack/memory.rb', line 8 def initialize(application) @application = application end |
Instance Method Details
#call(environment) ⇒ Object
12 13 14 15 16 |
# File 'lib/ruby_app/rack/memory.rb', line 12 def call(environment) RubyApp::Log.memory(RubyApp::Log::DEBUG, RubyApp::Log.prefix(self, __method__)) do return @application.call(environment) end end |