Class: Coconut::Dsl::AssetFolder
- Inherits:
-
Object
- Object
- Coconut::Dsl::AssetFolder
- Defined in:
- lib/coconut/dsl/asset_folder.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(path, ignored_files) ⇒ AssetFolder
constructor
A new instance of AssetFolder.
Constructor Details
#initialize(path, ignored_files) ⇒ AssetFolder
Returns a new instance of AssetFolder.
6 7 8 9 |
# File 'lib/coconut/dsl/asset_folder.rb', line 6 def initialize(path, ignored_files) @path = path @ignored_files = ignored_files.map(&method(:path_to)) end |
Instance Method Details
#each(&block) ⇒ Object
11 12 13 |
# File 'lib/coconut/dsl/asset_folder.rb', line 11 def each(&block) AssetFileList.new(*asset_files_in_folder).each(&block) end |