Sha256: 0959a54326db1de54a01d5f4e4fed237bb55764e21c29c2fff573f96b7c845fb

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

#!/usr/bin/env ruby

require 'rio'
require 'rio/argv'

re = ARGV.shift

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

RIO.ARGV.each do |rpath|
  rpath.norecurse('.svn','pkg').files('*.rb',is_ruby_exe) do |f|
    print f.lines(/#{re}/).map{ |l| "#{f}: #{l}" }
  end
end
__END__

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
wishdev-rio-0.4.3.1 ex/findinruby
rio-0.3.9 ex/findinruby
rio-0.4.2 ex/findinruby
rio-0.4.0 ex/findinruby
rio-0.4.1 ex/findinruby