diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-05 11:51:52 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-05 11:51:52 +0000 |
commit | 21e39197e6351aa786a555f7304cbb5b98b599ef (patch) | |
tree | 49be2cf6c4df177a1134f74090073b76064ef59d /benchmark/run_rite.rb | |
parent | 91a0e26a5234cf5f98aacc802c8910279d9a8195 (diff) | |
download | ruby-21e39197e6351aa786a555f7304cbb5b98b599ef.tar.gz |
* benchmark/run_rite.rb : fix to use readlines instead of
read(...).lines (because 1.8 doesn't have String#lines).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/run_rite.rb')
-rw-r--r-- | benchmark/run_rite.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/run_rite.rb b/benchmark/run_rite.rb index 5fae587e30..7a8d268b24 100644 --- a/benchmark/run_rite.rb +++ b/benchmark/run_rite.rb @@ -26,7 +26,7 @@ end prepare_wc_input
def bm file
- prog = File.read(file).lines.map{|e| e.rstrip}.join("\n")
+ prog = File.readlines(file).map{|e| e.rstrip}.join("\n")
return if prog.empty?
/[a-z]+_(.+)\.rb/ =~ file
|