Class: EmberCli::Assets::AssetMap

Inherits:
Object
  • Object
show all
Defined in:
lib/ember_cli/assets/asset_map.rb

Instance Method Summary collapse

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

#javascriptsObject



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

#stylesheetsObject



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