зеркало из https://github.com/github/ruby.git
* instruby.rb: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
039fd6a8f9
Коммит
279385a002
|
@ -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]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче