rdoc/constant.rb: reapply r43006 for workaround of NoMethodError
* lib/rdoc/constant.rb (RDoc::Constant#documented?): workaround for NoMethodError when the original of alias is not found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
372eefab52
commit
1eac0b55c9
@ -1,3 +1,8 @@
|
|||||||
|
Wed Nov 20 01:39:02 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rdoc/constant.rb (RDoc::Constant#documented?): workaround for
|
||||||
|
NoMethodError when the original of alias is not found.
|
||||||
|
|
||||||
Wed Nov 20 01:27:33 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Nov 20 01:27:33 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/delegate.rb (Delegator#send): separate from method_missing so
|
* lib/delegate.rb (Delegator#send): separate from method_missing so
|
||||||
|
@ -63,7 +63,15 @@ class RDoc::Constant < RDoc::CodeObject
|
|||||||
# for a documented class or module.
|
# for a documented class or module.
|
||||||
|
|
||||||
def documented?
|
def documented?
|
||||||
super or is_alias_for && is_alias_for.documented?
|
return true if super
|
||||||
|
return false unless @is_alias_for
|
||||||
|
case @is_alias_for
|
||||||
|
when String then
|
||||||
|
found = @store.find_class_or_module @is_alias_for
|
||||||
|
return false unless found
|
||||||
|
@is_alias_for = found
|
||||||
|
end
|
||||||
|
@is_alias_for.documented?
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user