public Method

Sys.for_files(*wildcards) { |fn| ... }

Perform a block with each file matching a set of wildcards.

Source Code

# File rake/contrib/sys.rb, line 180
def for_files(*wildcards)
  wildcards.each do |wildcard|
    Dir[wildcard].each do |fn|
      yield(fn)
    end
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.