Class: EJSHandler::EJSProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/init.rb

Overview

:nodoc:

Instance Method Summary collapse

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/rails/init.rb', line 9

def key?(pooperty)
  @controller.instance_variables.include?("@#{pooperty}")
end