Class: Assets::Minify::OutputPath
- Inherits:
-
Object
- Object
- Assets::Minify::OutputPath
- Defined in:
- lib/assets/minify/output_path.rb
Instance Method Summary collapse
- #files(child = nil) ⇒ Object
-
#initialize(path) ⇒ OutputPath
constructor
A new instance of OutputPath.
Constructor Details
#initialize(path) ⇒ OutputPath
Returns a new instance of OutputPath.
5 6 7 |
# File 'lib/assets/minify/output_path.rb', line 5 def initialize(path) @path = path end |
Instance Method Details
#files(child = nil) ⇒ Object
9 10 11 |
# File 'lib/assets/minify/output_path.rb', line 9 def files(child = nil) (child || @path).children.flat_map { |child| child.directory? ? files(child) : child } end |