Method: Assetify::Asset#path

Defined in:
lib/assetify/asset.rb

#pathObject



55
56
57
58
59
60
61
62
63
64
# File 'lib/assetify/asset.rb', line 55

def path
  args = if @to.empty?
           tpath = Opt[find_path_for(type)]
           raise "Don`t know where to put #{type} files..." unless tpath
           [tpath, @ns ? @ns.to_s : '']
         else
           [Dir.pwd, @to]
         end
  @path = File.join(args)
end