Class: EJSHandler::EJSProxy
- Inherits:
-
Object
- Object
- EJSHandler::EJSProxy
- Defined in:
- lib/rails/init.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](pooperty) ⇒ Object
- #[]=(pooperty, value) ⇒ Object
-
#initialize(controller) ⇒ EJSProxy
constructor
A new instance of EJSProxy.
- #key?(pooperty) ⇒ Boolean
Constructor Details
#initialize(controller) ⇒ EJSProxy
Returns a new instance of EJSProxy.
5 6 7 |
# File 'lib/rails/init.rb', line 5 def initialize(controller) @controller = controller end |
Instance Method Details
#[](pooperty) ⇒ Object
13 14 15 |
# File 'lib/rails/init.rb', line 13 def [](pooperty) @controller.instance_variable_get("@#{pooperty}") end |
#[]=(pooperty, value) ⇒ Object
17 18 19 |
# File 'lib/rails/init.rb', line 17 def []=(pooperty, value) @controller.instance_variable_set("@#{pooperty}", value) end |
#key?(pooperty) ⇒ Boolean
9 10 11 |
# File 'lib/rails/init.rb', line 9 def key?(pooperty) @controller.instance_variables.include?("@#{pooperty}") end |