diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-09 07:09:06 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-09 07:09:06 +0000 |
commit | 279385a00287e57cecc240fda4ef846c4afcfdea (patch) | |
tree | 0c75a33db7e1398500f037b9ac28992b2324b139 /instruby.rb | |
parent | 039fd6a8f9335ba6d2f45082a2f47635f384a606 (diff) |
* instruby.rb: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r-- | instruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/instruby.rb b/instruby.rb index 9f7c76b01f..362b25bfcb 100644 --- a/instruby.rb +++ b/instruby.rb @@ -179,7 +179,7 @@ if RUBY_PLATFORM =~ /mswin32|mingw|bccwin32/ end Dir.glob("*.[1-9]") do |mdoc| - next unless File.read(mdoc)[0] == ?. + next unless open(mdoc){|fh| fh.read(1) == '.'} section = mdoc[-1,1] |