Class: Jammit::Lite::Asset

Inherits:
Object
  • Object
show all
Defined in:
lib/jammit/lite/asset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Asset

Returns a new instance of Asset.



7
8
9
10
# File 'lib/jammit/lite/asset.rb', line 7

def initialize(path)
  @type = path.split('.').last.to_sym #=> :js
  @path = path.gsub('public','')
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/jammit/lite/asset.rb', line 5

def path
  @path
end