summaryrefslogtreecommitdiffstats
path: root/instruby.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-09 07:09:06 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-09 07:09:06 +0000
commit862cc06e9682e59ff1d26f7bf84a87955ef82729 (patch)
tree0c75a33db7e1398500f037b9ac28992b2324b139 /instruby.rb
parentfcd6db0b631b5707084ad0bf409c3541b67474eb (diff)
downloadruby-862cc06e9682e59ff1d26f7bf84a87955ef82729.tar.gz
ruby-862cc06e9682e59ff1d26f7bf84a87955ef82729.tar.xz
ruby-862cc06e9682e59ff1d26f7bf84a87955ef82729.zip
* instruby.rb: refactoring.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/instruby.rb b/instruby.rb
index 9f7c76b01..362b25bfc 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]