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.
-
#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.
90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 90 def initialize @extensions = { autolink: true, footnotes: true, highlight: true, space_after_headers: true, strikethrough: true, superscript: true } @render_class = Redcarpet::Render::HTML = {} end |
Instance Attribute Details
#extensions ⇒ Object
Returns the value of attribute extensions.
86 87 88 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 86 def extensions @extensions end |
#render_class ⇒ Object
Returns the value of attribute render_class.
87 88 89 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 87 def render_class @render_class end |
#render_options ⇒ Object
Returns the value of attribute render_options.
88 89 90 |
# File 'lib/mongoid_markdown_extension/markdown.rb', line 88 def end |