class RDoc::Markup
def self.parse str
def self.parse str RDoc::Markup::Parser.parse str rescue RDoc::Markup::Parser::Error => e $stderr.puts <<-EOF ile parsing markup, RDoc encountered a #{e.class}: e} from #{e.backtrace.join "\n\tfrom "} -8<--- text} -8<--- oc #{RDoc::VERSION} by #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} #{RUBY_RELEASE_DATE} ease file a bug report with the above information at: tps://github.com/rdoc/rdoc/issues EOF raise end
def add_html(tag, name)
def add_html(tag, name) @attribute_manager.add_html(tag, name) end
def add_special(pattern, name)
def add_special(pattern, name) @attribute_manager.add_special(pattern, name) end
def add_word_pair(start, stop, name)
def add_word_pair(start, stop, name) @attribute_manager.add_word_pair(start, stop, name) end
def convert input, formatter
def convert input, formatter document = case input when RDoc::Markup::Document then input else RDoc::Markup::Parser.parse input end document.accept formatter end
def initialize attribute_manager = nil
def initialize attribute_manager = nil @attribute_manager = attribute_manager || RDoc::Markup::AttributeManager.new @output = nil end