Class: ActionFlow::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/action_flow/variable.rb

Instance Method Summary collapse

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