Class: Sass::CacheStores::Null
- Inherits:
-
Base
- Object
- Base
- Sass::CacheStores::Null
- Defined in:
- .ruby-sass/lib/sass/cache_stores/null.rb
Overview
Doesn't store anything, but records what things it should have stored. This doesn't currently have any use except for testing and debugging.
Instance Method Summary (collapse)
- #_retrieve(key, version, sha) ⇒ Object
- #_store(key, version, sha, contents) ⇒ Object
-
#initialize ⇒ Null
constructor
A new instance of Null.
- #was_set?(key) ⇒ Boolean
Methods inherited from Base
Constructor Details
#initialize ⇒ Null
Returns a new instance of Null
8 9 10 |
# File '.ruby-sass/lib/sass/cache_stores/null.rb', line 8 def initialize @keys = {} end |
Constructor Details
#initialize ⇒ Null
Returns a new instance of Null
8 9 10 |
# File '.ruby-sass/lib/sass/cache_stores/null.rb', line 8 def initialize @keys = {} end |
Instance Method Details
#_retrieve(key, version, sha) ⇒ Object
12 13 14 |
# File '.ruby-sass/lib/sass/cache_stores/null.rb', line 12 def _retrieve(key, version, sha) nil end |
#_store(key, version, sha, contents) ⇒ Object
16 17 18 |
# File '.ruby-sass/lib/sass/cache_stores/null.rb', line 16 def _store(key, version, sha, contents) @keys[key] = true end |
#was_set?(key) ⇒ Boolean
20 21 22 |
# File '.ruby-sass/lib/sass/cache_stores/null.rb', line 20 def was_set?(key) @keys[key] end |