Class: ActionController::Reloader::BodyWrapper
- Inherits:
-
Object
- Object
- ActionController::Reloader::BodyWrapper
show all
- Defined in:
- lib/action_controller/reloader.rb
Instance Method Summary
collapse
Constructor Details
#initialize(body, lock) ⇒ BodyWrapper
Returns a new instance of BodyWrapper.
9
10
11
12
|
# File 'lib/action_controller/reloader.rb', line 9
def initialize(body, lock)
@body = body
@lock = lock
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
21
22
23
|
# File 'lib/action_controller/reloader.rb', line 21
def method_missing(*args, &block)
@body.send(*args, &block)
end
|
Instance Method Details
14
15
16
17
18
19
|
# File 'lib/action_controller/reloader.rb', line 14
def close
@body.close if @body.respond_to?(:close)
ensure
Dispatcher.cleanup_application
@lock.unlock
end
|
#respond_to?(symbol, include_private = false) ⇒ Boolean
25
26
27
|
# File 'lib/action_controller/reloader.rb', line 25
def respond_to?(symbol, include_private = false)
symbol == :close || @body.respond_to?(symbol, include_private)
end
|