Class: Sprockets::SassCacheStore

### Home Classes Methods

### In Files

- lib/sprockets/sass_cache_store.rb

### Parent

Sass::CacheStores::Base

### Methods

- ::new
- #_retrieve
- #_store
- #path_to

### Class/Module Index

Quicksearch

- Sprockets
- Sprockets::ArgumentError
- Sprockets::Asset
- Sprockets::AssetAttributes
- Sprockets::Base
- Sprockets::BundledAsset
- Sprockets::Cache
- Sprockets::Cache::FileStore
- Sprockets::Caching
- Sprockets::CharsetNormalizer
- Sprockets::CircularDependencyError
- Sprockets::ClosureCompressor
- Sprockets::Compressing
- Sprockets::ContentTypeMismatch
- Sprockets::Context
- Sprockets::DirectiveProcessor
- Sprockets::EcoTemplate
- Sprockets::EjsTemplate
- Sprockets::EncodingError
- Sprockets::EngineError
- Sprockets::Engines
- Sprockets::Environment
- Sprockets::Error
- Sprockets::FileNotFound
- Sprockets::FileOutsidePaths
- Sprockets::Index
- Sprockets::JstProcessor
- Sprockets::Manifest
- Sprockets::Mime
- Sprockets::NotImplementedError
- Sprockets::Paths
- Sprockets::ProcessedAsset
- Sprockets::ProcessedAsset::DependencyFile
- Sprockets::Processing
- Sprockets::Processor
- Sprockets::SafetyColons
- Sprockets::SassCacheStore
- Sprockets::SassCompressor
- Sprockets::SassFunctions
- Sprockets::SassImporter
- Sprockets::SassTemplate
- Sprockets::ScssTemplate
- Sprockets::Server
- Sprockets::StaticAsset
- Sprockets::UglifierCompressor
- Sprockets::UnserializeError
- Sprockets::Utils
- Sprockets::YUICompressor
- Rake
- Rake::SprocketsTask

No matching classes.

# Sprockets::SassCacheStore

### Attributes

environment[R]

### Public Class Methods

new(environment) click to toggle source

    # File lib/sprockets/sass_cache_store.rb, line 7
    def initialize(environment)
      @environment = environment
    end

### Public Instance Methods

_retrieve(key, version, sha) click to toggle source

    # File lib/sprockets/sass_cache_store.rb, line 15
    def _retrieve(key, version, sha)
      if obj = environment.cache_get("sass/#{key}")
        return unless obj[:version] == version
        return unless obj[:sha] == sha
        obj[:contents]
      else
        nil
      end
    end

_store(key, version, sha, contents) click to toggle source

    # File lib/sprockets/sass_cache_store.rb, line 11
    def _store(key, version, sha, contents)
      environment.cache_set("sass/#{key}", {:version => version, :sha => sha, :contents => contents})
    end

path_to(key) click to toggle source

    # File lib/sprockets/sass_cache_store.rb, line 25
    def path_to(key)
      key
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.