diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/constant.rb | 10 |
2 files changed, 14 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Dec 3 12:17:59 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. + Tue Dec 3 10:43:58 2013 Eric Hodel <drbrain@segment7.net> * ext/openssl/lib/openssl/buffering.rb: Return ASCII-8BIT strings from diff --git a/lib/rdoc/constant.rb b/lib/rdoc/constant.rb index 48b32aaf98..97985cbf99 100644 --- a/lib/rdoc/constant.rb +++ b/lib/rdoc/constant.rb @@ -63,7 +63,15 @@ class RDoc::Constant < RDoc::CodeObject # for a documented class or module. 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 ## |