Sha256: 8cffe47016a49d5e50f6f44722e50abb3e8bd5e220e0f1f6c59082fb9b2da9de

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 Bytes

Contents

#!/usr/bin/env ruby

require 'rio'
require 'rio/argv'

#is_ruby_exe = proc{ |f| f.executable? and f[0][0] =~ /^#!.+ruby/ }
is_ruby_exe = proc{ |f| f.executable? and f.gets =~ /^#!.+ruby/ }

RIO.ARGV.each do |rpath|
  rpath.norecurse('.svn','pkg').files('*.rb',is_ruby_exe) do |f|
    puts f
  end
end

__END__

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rio-0.3.2 ex/findruby
rio-0.3.7 ex/findruby
rio-0.3.4 ex/findruby
rio-0.3.3 ex/findruby