mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RDoc 3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d7effd506f
commit
2ef9c50c6e
106 changed files with 8878 additions and 4179 deletions
|
@ -6,6 +6,8 @@ require 'rdoc/markup/formatter'
|
|||
|
||||
class RDoc::Markup::ToTest < RDoc::Markup::Formatter
|
||||
|
||||
# :stopdoc:
|
||||
|
||||
##
|
||||
# :section: Visitor
|
||||
|
||||
|
@ -22,8 +24,12 @@ class RDoc::Markup::ToTest < RDoc::Markup::Formatter
|
|||
@res << paragraph.text
|
||||
end
|
||||
|
||||
def accept_raw raw
|
||||
@res << raw.parts.join
|
||||
end
|
||||
|
||||
def accept_verbatim(verbatim)
|
||||
@res << verbatim.text
|
||||
@res << verbatim.text.gsub(/^(\S)/, ' \1')
|
||||
end
|
||||
|
||||
def accept_list_start(list)
|
||||
|
@ -60,5 +66,7 @@ class RDoc::Markup::ToTest < RDoc::Markup::Formatter
|
|||
@res << '-' * rule.weight
|
||||
end
|
||||
|
||||
# :startdoc:
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue