summaryrefslogtreecommitdiff
path: root/lib/rdoc/comment.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-01-20 13:18:22 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-26 17:20:27 +0800
commitf7cbbc707413f7e1c71ac1839b0c8834550451e6 (patch)
tree65d32de07b000d57070fc717486c196c36c4367b /lib/rdoc/comment.rb
parent95aa60f6cde1ab7bc5cfe33c95c4fd2d2154cd52 (diff)
downloadruby-f7cbbc707413f7e1c71ac1839b0c8834550451e6.tar.gz
[ruby/rdoc] ClassModule#add_comment should receive RDoc::Comment
https://github.com/ruby/rdoc/commit/3fb03bf399
Diffstat (limited to 'lib/rdoc/comment.rb')
-rw-r--r--lib/rdoc/comment.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rdoc/comment.rb b/lib/rdoc/comment.rb
index 134f6440a0..0f643c45b9 100644
--- a/lib/rdoc/comment.rb
+++ b/lib/rdoc/comment.rb
@@ -34,6 +34,11 @@ class RDoc::Comment
attr_reader :text
##
+ # Alias for text
+
+ alias to_s text
+
+ ##
# Overrides the content returned by #parse. Use when there is no #text
# source for this comment