Class: EmberCli::Assets::AssetMap
- Inherits:
-
Object
- Object
- EmberCli::Assets::AssetMap
- Defined in:
- lib/ember_cli/assets/asset_map.rb
Instance Method Summary collapse
-
#initialize(name:, asset_map:) ⇒ AssetMap
constructor
A new instance of AssetMap.
- #javascripts ⇒ Object
- #stylesheets ⇒ Object
Constructor Details
#initialize(name:, asset_map:) ⇒ AssetMap
Returns a new instance of AssetMap.
6 7 8 9 |
# File 'lib/ember_cli/assets/asset_map.rb', line 6 def initialize(name:, asset_map:) @name = name @asset_map = asset_map end |
Instance Method Details
#javascripts ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/ember_cli/assets/asset_map.rb', line 11 def javascripts assert_asset_map! [ asset_matching(/vendor(.*)\.js\z/), asset_matching(/#{name}(.*)\.js\z/), ] end |
#stylesheets ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/ember_cli/assets/asset_map.rb', line 20 def stylesheets assert_asset_map! [ asset_matching(/vendor(.*)\.css\z/), asset_matching(/#{name}(.*)\.css\z/), ] end |