Class: Torba::ImportList::Asset
- Inherits:
-
Struct
- Object
- Struct
- Torba::ImportList::Asset
- Defined in:
- lib/torba/import_list.rb
Overview
Instance Attribute Summary collapse
-
#absolute_path ⇒ Object
Returns the value of attribute absolute_path.
-
#logical_path ⇒ Object
Returns the value of attribute logical_path.
Instance Method Summary collapse
Instance Attribute Details
#absolute_path ⇒ Object
Returns the value of attribute absolute_path
8 9 10 |
# File 'lib/torba/import_list.rb', line 8 def absolute_path @absolute_path end |
#logical_path ⇒ Object
Returns the value of attribute logical_path
8 9 10 |
# File 'lib/torba/import_list.rb', line 8 def logical_path @logical_path end |
Instance Method Details
#css? ⇒ Boolean
9 10 11 |
# File 'lib/torba/import_list.rb', line 9 def css? absolute_path =~ /\.(sass|scss|css)$/ end |
#js? ⇒ Boolean
13 14 15 |
# File 'lib/torba/import_list.rb', line 13 def js? absolute_path.end_with?(".js") end |