Class: Sprockets::Helpers::ManifestPath

Inherits:
AssetPath show all
Defined in:
lib/sprockets/helpers/manifest_path.rb

Overview

`ManifestPath` uses the digest path and prepends the prefix.

Instance Attribute Summary

Attributes inherited from BasePath

#options, #uri

Instance Method Summary collapse

Methods inherited from AssetPath

#to_a

Methods inherited from BasePath

#to_s

Constructor Details

#initialize(uri, path, options = {}) ⇒ ManifestPath

Returns a new instance of ManifestPath


6
7
8
9
10
11
12
13
14
# File 'lib/sprockets/helpers/manifest_path.rb', line 6

def initialize(uri, path, options = {})
  @uri = uri
  @options = {
    :body => false,
    :prefix => Helpers.prefix
  }.merge options

  @uri.path = path.to_s
end