Class: MongoidMarkdownExtension::Configuration
- Inherits:
-
Object
- Object
- MongoidMarkdownExtension::Configuration
- Defined in:
- lib/mongoid_markdown_extension/markdown.rb
Instance Attribute Summary collapse
-
#extensions ⇒ Object
Returns the value of attribute extensions.
-
#inline_render_class ⇒ Object
Returns the value of attribute inline_render_class.
-
#render_class ⇒ Object
Returns the value of attribute render_class.
-
#render_options ⇒ Object
Returns the value of attribute render_options.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 97 def initialize @extensions = { autolink: true, footnotes: true, highlight: true, space_after_headers: true, strikethrough: true, superscript: true } @inline_render_class = MongoidMarkdownExtension::InlineRenderer @render_class = Redcarpet::Render::HTML = {} end |
Instance Attribute Details
#extensions ⇒ Object
Returns the value of attribute extensions.
92 93 94 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 92 def extensions @extensions end |
#inline_render_class ⇒ Object
Returns the value of attribute inline_render_class.
93 94 95 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 93 def inline_render_class @inline_render_class end |
#render_class ⇒ Object
Returns the value of attribute render_class.
94 95 96 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 94 def render_class @render_class end |
#render_options ⇒ Object
Returns the value of attribute render_options.
95 96 97 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 95 def end |