Module: MarkdownRails

Defined in:
lib/markdown-rails/engine.rb,
lib/markdown-rails/version.rb

Overview

We cannot use Markdown::Rails because it conflicts with RDiscount’s Markdown class

Defined Under Namespace

Classes: Handler

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.rendererObject

Returns the value of attribute renderer.



21
22
23
# File 'lib/markdown-rails/engine.rb', line 21

def renderer
  @renderer
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (MarkdownRails)

    the object that the method was called on



17
18
19
# File 'lib/markdown-rails/engine.rb', line 17

def configure
  yield self
end

.render(&block) ⇒ Object



23
24
25
# File 'lib/markdown-rails/engine.rb', line 23

def render(&block)
  self.renderer = block
end