mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
c13aa27e52
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10 lines
202 B
Ruby
Executable file
10 lines
202 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
Dir.chdir('../rubyspec') do
|
|
regexp = Regexp.new(ARGV[0])
|
|
Dir.glob('**/*.rb') do |file|
|
|
contents = File.read(file)
|
|
if regexp =~ contents
|
|
puts file
|
|
end
|
|
end
|
|
end
|