Class: Prawn::Dev::YardMarkup::Document
- Inherits:
-
Kramdown::Document
- Object
- Kramdown::Document
- Prawn::Dev::YardMarkup::Document
- Defined in:
- lib/prawn/dev/yard_markup/document.rb
Instance Method Summary collapse
- #default_options ⇒ Object
-
#initialize(source, options = {}) ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(source, options = {}) ⇒ Document
Returns a new instance of Document.
29 30 31 |
# File 'lib/prawn/dev/yard_markup/document.rb', line 29 def initialize(source, = {}) super(source, .merge()) end |
Instance Method Details
#default_options ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/prawn/dev/yard_markup/document.rb', line 33 def { input: 'GFM', hard_wrap: false, syntax_highlighter: :rouge, syntax_highlighter_opts: { default_lang: 'ruby', block: { formatter: CodeFormatter }, span: { formatter: CodeFormatter, inline: true }, }, } end |