Class: Webpacker::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/webpacker/source.rb

Instance Method Summary collapse

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

#pathObject



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