Class: ActionFlow::Variable
- Inherits:
-
Object
- Object
- ActionFlow::Variable
- Defined in:
- lib/action_flow/variable.rb
Instance Method Summary collapse
-
#initialize(symbol) ⇒ Variable
constructor
A new instance of Variable.
- #lookup(env) ⇒ Object
Constructor Details
#initialize(symbol) ⇒ Variable
Returns a new instance of Variable.
4 5 6 |
# File 'lib/action_flow/variable.rb', line 4 def initialize(symbol) @name = symbol end |
Instance Method Details
#lookup(env) ⇒ Object
8 9 10 |
# File 'lib/action_flow/variable.rb', line 8 def lookup(env) env[@name] end |