mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
Add boot_classes to rdoc parsing, fix a couple of bugs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d3b74e1806
commit
8ed8664aa7
7 changed files with 191 additions and 16 deletions
|
@ -214,6 +214,12 @@ module RDoc
|
|||
handle_class_module(var_name, "class", class_name, parent, nil)
|
||||
end
|
||||
|
||||
@body.scan(/(\w+)\s*=\s*boot_defclass\(\s*"(\w+?)",\s*(\w+?)\)/) do
|
||||
|var_name, class_name, parent|
|
||||
parent = nil if parent == "0"
|
||||
handle_class_module(var_name, "class", class_name, parent, nil)
|
||||
end
|
||||
|
||||
@body.scan(/(\w+)\s* = \s*rb_define_class_under
|
||||
\(
|
||||
\s*(\w+),
|
||||
|
|
|
@ -77,7 +77,7 @@ module RI
|
|||
|
||||
|
||||
# Return our full name
|
||||
def full_namep
|
||||
def full_name
|
||||
res = @in_class.full_name
|
||||
res << "::" unless res.empty?
|
||||
res << @name
|
||||
|
@ -95,7 +95,7 @@ module RI
|
|||
when nil then @class_methods + @instance_methods
|
||||
when true then @class_methods
|
||||
when false then @instance_methods
|
||||
else fail "Unknown is_class_method"
|
||||
else fail "Unknown is_class_method: #{is_class_method.inspect}"
|
||||
end
|
||||
|
||||
list.find_all {|m| m.name; m.name[name]}
|
||||
|
|
|
@ -59,7 +59,7 @@ class NameDescriptor
|
|||
if @method_name =~ /::|\.|#/ or !tokens.empty?
|
||||
raise RiError.new("Bad argument: #{arg}")
|
||||
end
|
||||
if separator
|
||||
if separator && separator != '.'
|
||||
@is_class_method = separator == "::"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue