Method: RDoc::Parser::Ruby#retrieve_comment_body
- Defined in:
- lib/rdoc/parser/ruby.rb
#retrieve_comment_body(tk) ⇒ Object
Retrieve comment body without =begin/=end
1727 1728 1729 1730 1731 1732 1733 |
# File 'lib/rdoc/parser/ruby.rb', line 1727 def retrieve_comment_body(tk) if :on_embdoc == tk[:kind] tk[:text].gsub(/\A=begin.*\n/, '').gsub(/=end\n?\z/, '') else tk[:text] end end |