mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant
name signleton class. [Bug #3759], [ruby-dev:42154] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d2da9597c3
commit
ccf4fbf78d
3 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Aug 29 23:46:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant
|
||||
name signleton class. [Bug #3759], [ruby-dev:42154]
|
||||
|
||||
Sun Aug 29 23:25:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_get_path_check): clarify error message for
|
||||
|
|
|
@ -568,7 +568,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
|
|||
case name = get_class_specification
|
||||
when "self", container.name
|
||||
parse_statements container, SINGLE
|
||||
else
|
||||
when /\A[A-Z]/
|
||||
other = RDoc::TopLevel.find_class_named name
|
||||
|
||||
unless other then
|
||||
|
|
|
@ -429,6 +429,8 @@ end
|
|||
class A
|
||||
class << B
|
||||
end
|
||||
class << d = Object.new
|
||||
end
|
||||
end
|
||||
CODE
|
||||
|
||||
|
|
Loading…
Reference in a new issue