Class: Coconut::Dsl::AssetFileList
- Inherits:
-
Object
- Object
- Coconut::Dsl::AssetFileList
- Defined in:
- lib/coconut/dsl/asset_file_list.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(*file_paths) ⇒ AssetFileList
constructor
A new instance of AssetFileList.
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 |