- Don't hack an exception onto String#scan (only needed it for debugging anyway)

This commit is contained in:
Jordan Sissel 2009-09-19 10:06:31 +00:00
parent 40fbf7a670
commit 82e5bf79e9

View file

@ -1,22 +1,22 @@
#!/usr/bin/env ruby
require 'rubygems'
require 'ruby-prof'
require 'lib/net/servers/indexer'
#class String
#alias_method :orig_scan, :scan
#def scan(*args)
#raise
#return orig_scan(*args)
#end
#end
if ENV.has_key?("PROFILE")
RubyProf.start
end
def main(args)
if ENV.has_key?("PROFILE")
require 'ruby-prof'
RubyProf.start
#class String
#alias_method :orig_scan, :scan
#def scan(*args)
##raise
#return orig_scan(*args)
#end
#end
end
if args.length != 1
puts "Usage: #{$0} configfile"