Class: Utopia::Middleware::Controller::Variables
- Inherits:
-
Object
- Object
- Utopia::Middleware::Controller::Variables
- Defined in:
- lib/utopia/middleware/controller.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
26 27 28 |
# File 'lib/utopia/middleware/controller.rb', line 26 def [](key) instance_variable_get("@#{key}") end |
#[]=(key, value) ⇒ Object
30 31 32 |
# File 'lib/utopia/middleware/controller.rb', line 30 def []=(key, value) instance_variable_set("@#{key}", value) end |