summaryrefslogtreecommitdiff
path: root/lib/rdoc/method_attr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/method_attr.rb')
-rw-r--r--lib/rdoc/method_attr.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rdoc/method_attr.rb b/lib/rdoc/method_attr.rb
index c9c377f671..8bde102640 100644
--- a/lib/rdoc/method_attr.rb
+++ b/lib/rdoc/method_attr.rb
@@ -95,6 +95,18 @@ class RDoc::MethodAttr < RDoc::CodeObject
end
##
+ # Resets cached data for the object so it can be rebuilt by accessor methods
+
+ def initialize_copy other # :nodoc:
+ @full_name = nil
+ end
+
+ def initialize_visibility # :nodoc:
+ super
+ @see = nil
+ end
+
+ ##
# Order by #singleton then #name
def <=>(other)