class Formtastic::Localizer::Cache
Public Instance Methods
cache()
click to toggle source
# File lib/formtastic/localizer.rb, line 40 def cache @cache ||= {} end
clear!()
click to toggle source
# File lib/formtastic/localizer.rb, line 44 def clear! cache.clear end
get(key)
click to toggle source
# File lib/formtastic/localizer.rb, line 28 def get(key) cache[key] end
has_key?(key)
click to toggle source
# File lib/formtastic/localizer.rb, line 32 def has_key?(key) cache.has_key?(key) end
set(key, result)
click to toggle source
# File lib/formtastic/localizer.rb, line 36 def set(key, result) cache[key] = result end