Module: AutomationObject::StepDefinitions::Cache
- Extended by:
- Cache
- Included in:
- Cache
- Defined in:
- lib/automation_object/step_definitions/support/cache.rb
Overview
Cache module for temporary storage of vars
Instance Method Summary collapse
- #get(key) ⇒ Object
- #set(key, value) ⇒ void
-
#values ⇒ Hash
Singleton hash, create new if needed.
Instance Method Details
#get(key) ⇒ Object
16 17 18 |
# File 'lib/automation_object/step_definitions/support/cache.rb', line 16 def get(key) values[key] end |
#set(key, value) ⇒ void
This method returns an undefined value.
23 24 25 |
# File 'lib/automation_object/step_definitions/support/cache.rb', line 23 def set(key, value) values[key] = value end |
#values ⇒ Hash
Singleton hash, create new if needed
11 12 13 |
# File 'lib/automation_object/step_definitions/support/cache.rb', line 11 def values @values ||= {} end |