summaryrefslogtreecommitdiffstats
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
commit1e32287226749e4d3e6e4283e84bcca522c7bbe3 (patch)
tree18cf2ffeda46d176a3e1c1d0d3d01557aa47df2a /instruby.rb
parentdc8d1734f8bda857e1b37f7e4f50a5842ec54d7c (diff)
downloadruby-1e32287226749e4d3e6e4283e84bcca522c7bbe3.tar.gz
ruby-1e32287226749e4d3e6e4283e84bcca522c7bbe3.tar.xz
ruby-1e32287226749e4d3e6e4283e84bcca522c7bbe3.zip
* instruby: do not handle directories. [ruby-dev:20613]
git-svn-id: http://svn.ruby-lang.org/repos/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 362b25bfc..3f39865ef 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]