Class: Kindah::Cache
- Inherits:
-
Object
- Object
- Kindah::Cache
- Defined in:
- lib/kindah/cache.rb
Class Method Summary collapse
Class Method Details
.[](*args) ⇒ Object
3 4 5 |
# File 'lib/kindah/cache.rb', line 3 def self.[](*args) storage[args] end |
.[]=(*args, last) ⇒ Object
7 8 9 |
# File 'lib/kindah/cache.rb', line 7 def self.[]=(*args, last) storage[args] = last end |
.storage ⇒ Object
11 12 13 |
# File 'lib/kindah/cache.rb', line 11 def self.storage @storage ||= {} end |