Class: PHPHandler::ControllerProxy
- Inherits:
-
Object
- Object
- PHPHandler::ControllerProxy
- Defined in:
- lib/phuby/rails.rb
Instance Method Summary collapse
-
#initialize(controller) ⇒ ControllerProxy
constructor
A new instance of ControllerProxy.
- #method_missing(name) ⇒ Object
Constructor Details
#initialize(controller) ⇒ ControllerProxy
Returns a new instance of ControllerProxy.
16 17 18 |
# File 'lib/phuby/rails.rb', line 16 def initialize controller @controller = controller end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
20 21 22 |
# File 'lib/phuby/rails.rb', line 20 def method_missing name @controller.instance_variable_get :"@#{name}" end |