Class: EmberCli::Assets::DirectoryAssetMap

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

Instance Method Summary collapse

Constructor Details

#initialize(directory) ⇒ DirectoryAssetMap

Returns a new instance of DirectoryAssetMap.



4
5
6
# File 'lib/ember_cli/assets/directory_asset_map.rb', line 4

def initialize(directory)
  @directory = Pathname.new(directory)
end

Instance Method Details

#to_hObject



8
9
10
11
12
13
# File 'lib/ember_cli/assets/directory_asset_map.rb', line 8

def to_h
  {
    "assets" => files_with_data,
    "prepend" => "assets/",
  }
end