Module: Sprockets::SassFunctions

### Home Classes Methods

### In Files

- lib/sprockets/sass_functions.rb

### Methods

- #asset_path
- #asset_url
- #audio_path
- #audio_url
- #font_path
- #font_url
- #image_path
- #image_url
- #javascript_path
- #javascript_url
- #sprockets_context
- #sprockets_environment
- #stylesheet_path
- #stylesheet_url
- #video_path
- #video_url

### 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::SassFunctions

### Public Instance Methods

asset_path(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 5
    def asset_path(path)
      ::Sass::Script::String.new(sprockets_context.asset_path(path.value), :string)
    end

asset_url(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 9
    def asset_url(path)
      ::Sass::Script::String.new("url(" + sprockets_context.asset_path(path.value) + ")")
    end

audio_path(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 29
    def audio_path(path)
      ::Sass::Script::String.new(sprockets_context.audio_path(path.value), :string)
    end

audio_url(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 33
    def audio_url(path)
      ::Sass::Script::String.new("url(" + sprockets_context.audio_path(path.value) + ")")
    end

font_path(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 37
    def font_path(path)
      ::Sass::Script::String.new(sprockets_context.font_path(path.value), :string)
    end

font_url(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 41
    def font_url(path)
      ::Sass::Script::String.new("url(" + sprockets_context.font_path(path.value) + ")")
    end

image_path(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 13
    def image_path(path)
      ::Sass::Script::String.new(sprockets_context.image_path(path.value), :string)
    end

image_url(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 17
    def image_url(path)
      ::Sass::Script::String.new("url(" + sprockets_context.image_path(path.value) + ")")
    end

javascript_path(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 45
    def javascript_path(path)
      ::Sass::Script::String.new(sprockets_context.javascript_path(path.value), :string)
    end

javascript_url(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 49
    def javascript_url(path)
      ::Sass::Script::String.new("url(" + sprockets_context.javascript_path(path.value) + ")")
    end

stylesheet_path(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 53
    def stylesheet_path(path)
      ::Sass::Script::String.new(sprockets_context.stylesheet_path(path.value), :string)
    end

stylesheet_url(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 57
    def stylesheet_url(path)
      ::Sass::Script::String.new("url(" + sprockets_context.stylesheet_path(path.value) + ")")
    end

video_path(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 21
    def video_path(path)
      ::Sass::Script::String.new(sprockets_context.video_path(path.value), :string)
    end

video_url(path) click to toggle source

    # File lib/sprockets/sass_functions.rb, line 25
    def video_url(path)
      ::Sass::Script::String.new("url(" + sprockets_context.video_path(path.value) + ")")
    end

### Protected Instance Methods

sprockets_context() click to toggle source

    # File lib/sprockets/sass_functions.rb, line 62
    def sprockets_context
      options[:sprockets][:context]
    end

sprockets_environment() click to toggle source

    # File lib/sprockets/sass_functions.rb, line 66
    def sprockets_environment
      options[:sprockets][:environment]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.