summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rdoc/ri/ri_cache.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/ri/ri_cache.rb b/lib/rdoc/ri/ri_cache.rb
index da2a7e47ff..f2cdbf6f38 100644
--- a/lib/rdoc/ri/ri_cache.rb
+++ b/lib/rdoc/ri/ri_cache.rb
@@ -85,8 +85,9 @@ module RI
# is a class method or not, otherwise we only return
# those methods that match
def local_methods_matching(name, is_class_method)
+
list = case is_class_method
- when nil then @class_methods + @instance
+ when nil then @class_methods + @instance_methods
when true then @class_methods
when false then @instance_methods
else fail "Unknown is_class_method"