Class: RedCloth::TextileDoc

Inherits:
Object
  • Object
show all
Defined in:
lib/redcloth-formatters-rdoc/textile_doc.rb

Instance Method Summary collapse

Instance Method Details

#to_rdoc(*rules) ⇒ Object

Generates DocBook from the Textile contents.

RedCloth.new( "And then? She *fell*!" ).to_rdoc
  #=> "And then? She fell!"


10
11
12
13
14
# File 'lib/redcloth-formatters-rdoc/textile_doc.rb', line 10

def to_rdoc(*rules)
  apply_rules(rules)
  
  to(RedCloth::Formatters::RDoc)
end