Class: Sass::CacheStores::Null

Inherits:
Base
  • Object
show all
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)

Methods inherited from Base

#key, #retrieve, #store

Constructor Details

#initializeNull

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

#initializeNull

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

Returns:

  • (Boolean)


20
21
22
# File '.ruby-sass/lib/sass/cache_stores/null.rb', line 20

def was_set?(key)
  @keys[key]
end