summaryrefslogtreecommitdiff
path: root/instruby.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-11 09:39:09 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-11 09:39:09 +0000
commit3ed23a541f9132d8b8ddc03dc59531daec260f74 (patch)
tree18cf2ffeda46d176a3e1c1d0d3d01557aa47df2a /instruby.rb
parent37f26903b0ed779c56ef1f20cd71875622a1e429 (diff)
* instruby: do not handle directories. [ruby-dev:20613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4060 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 362b25bfcb..3f39865eff 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 open(mdoc){|fh| fh.read(1) == '.'}
+ next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'}
section = mdoc[-1,1]