We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53287f commit 0bbb149Copy full SHA for 0bbb149
lib/rdoc/code_object/mixin.rb
@@ -55,6 +55,12 @@ def inspect # :nodoc:
55
]
56
end
57
58
+ def module
59
+ return @memoized_module if instance_variable_defined?(:@memoized_module)
60
+
61
+ @memoized_module = lookup_module
62
+ end
63
64
##
65
# Attempts to locate the included module object. Returns the name if not
66
# known.
@@ -72,7 +78,7 @@ def inspect # :nodoc:
72
78
#
73
79
# As of the beginning of October, 2011, no gem includes nonexistent modules.
74
80
75
- def module
81
+ def lookup_module
76
82
return @module if @module
77
83
84
# search the current context
0 commit comments