Class: Jammit::Lite::Asset
- Inherits:
-
Object
- Object
- Jammit::Lite::Asset
- Defined in:
- lib/jammit/lite/asset.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Asset
constructor
A new instance of Asset.
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
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/jammit/lite/asset.rb', line 5 def path @path end |