summaryrefslogtreecommitdiff
path: root/lib/rdoc/code_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/code_object.rb')
-rw-r--r--lib/rdoc/code_object.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rdoc/code_object.rb b/lib/rdoc/code_object.rb
index ea1a5eaffc..f8c4e33f7e 100644
--- a/lib/rdoc/code_object.rb
+++ b/lib/rdoc/code_object.rb
@@ -55,6 +55,11 @@ class RDoc::CodeObject
attr_accessor :force_documentation
##
+ # Hash of arbitrary metadata for this CodeObject
+
+ attr_reader :metadata
+
+ ##
# Our parent CodeObject
attr_accessor :parent
@@ -75,6 +80,7 @@ class RDoc::CodeObject
# Creates a new CodeObject that will document itself and its children
def initialize
+ @metadata = {}
@comment = ''
@document_children = true