Skip to content

Commit 41a7348

Browse files
committed
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@43967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 24bcd4c commit 41a7348

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Tue Dec 3 12:17:59 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* lib/rdoc/constant.rb (RDoc::Constant#documented?): workaround for
4+
NoMethodError when the original of alias is not found.
5+
16
Tue Dec 3 10:43:58 2013 Eric Hodel <drbrain@segment7.net>
27

38
* ext/openssl/lib/openssl/buffering.rb: Return ASCII-8BIT strings from

lib/rdoc/constant.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ def == other
6363
# for a documented class or module.
6464

6565
def documented?
66-
super or is_alias_for && is_alias_for.documented?
66+
return true if super
67+
return false unless @is_alias_for
68+
case @is_alias_for
69+
when String then
70+
found = @store.find_class_or_module @is_alias_for
71+
return false unless found
72+
@is_alias_for = found
73+
end
74+
@is_alias_for.documented?
6775
end
6876

6977
##

0 commit comments

Comments
 (0)