Class: AssetFingerprinter::Fingerprinter::Digest
- Inherits:
-
Object
- Object
- AssetFingerprinter::Fingerprinter::Digest
- Defined in:
- lib/asset_fingerprinter/fingerprinter.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
- #call(path) ⇒ Object
-
#initialize ⇒ Digest
constructor
Digests a file and returns the cachebusted path.
Constructor Details
Instance Attribute Details
#root ⇒ Object
Returns the value of attribute root.
6 7 8 |
# File 'lib/asset_fingerprinter/fingerprinter.rb', line 6 def root @root end |
Instance Method Details
#call(path) ⇒ Object
15 16 17 |
# File 'lib/asset_fingerprinter/fingerprinter.rb', line 15 def call(path) @cache[clean_path(path)] end |