Class: Webpacker::Source
- Inherits:
-
Object
- Object
- Webpacker::Source
- Defined in:
- lib/webpacker/source.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Source
constructor
A new instance of Source.
- #path ⇒ Object
Constructor Details
#initialize(name) ⇒ Source
Returns a new instance of Source.
2 3 4 |
# File 'lib/webpacker/source.rb', line 2 def initialize(name) @name = name end |
Instance Method Details
#path ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/webpacker/source.rb', line 6 def path if digesting? "/packs/#{digested_filename}" else "/packs/#{filename}" end end |