module Sprockets::SassFunctions - sprockets-2.11.3 Documentation

# module 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