Class: EsiAttributeLanguage::VariableLookup
- Inherits:
-
Object
- Object
- EsiAttributeLanguage::VariableLookup
- Defined in:
- lib/esi_attribute_language.rb
Instance Method Summary collapse
- #execute(context) ⇒ Object
-
#initialize(variable_name) ⇒ VariableLookup
constructor
A new instance of VariableLookup.
Constructor Details
#initialize(variable_name) ⇒ VariableLookup
Returns a new instance of VariableLookup.
6 7 8 |
# File 'lib/esi_attribute_language.rb', line 6 def initialize(variable_name) @variable_name = variable_name.to_sym end |
Instance Method Details
#execute(context) ⇒ Object
10 11 12 |
# File 'lib/esi_attribute_language.rb', line 10 def execute(context) context[@variable_name] end |