Class: Assets::Minify::OutputPath

Inherits:
Object
  • Object
show all
Defined in:
lib/assets/minify/output_path.rb

Instance Method Summary collapse

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