module AutomationObject::StepDefinitions::Cache
Cache
module for temporary storage of vars
Public Instance Methods
get(key)
click to toggle source
@return [Object]
# File lib/automation_object/step_definitions/support/cache.rb, line 16 def get(key) values[key] end
set(key, value)
click to toggle source
@param key [Object] @param value [Object] @return [void]
# File lib/automation_object/step_definitions/support/cache.rb, line 23 def set(key, value) values[key] = value end
values()
click to toggle source
Singleton hash, create new if needed @return [Hash] hash of values saved or new hash
# File lib/automation_object/step_definitions/support/cache.rb, line 11 def values @values ||= {} end