Class: Coconut::Dsl::AssetFileList

Inherits:
Object
  • Object
show all
Defined in:
lib/coconut/dsl/asset_file_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(*file_paths) ⇒ AssetFileList

Returns a new instance of AssetFileList.



4
5
6
# File 'lib/coconut/dsl/asset_file_list.rb', line 4

def initialize(*file_paths)
  @paths = file_paths
end

Instance Method Details

#each(&block) ⇒ Object



8
9
10
# File 'lib/coconut/dsl/asset_file_list.rb', line 8

def each(&block)
  @paths.each { |path| yield File.read(path), path }
end