class RedcarpetText
Attributes
markdown_processor[R]
text[R]
Public Class Methods
new(text, options = {})
click to toggle source
Calls superclass method
# File lib/acts_as_markup/exts/redcarpet.rb, line 6 def initialize(text, options = {}) super(text) @text = text @markdown_processor = Redcarpet::Markdown.new(Redcarpet::Render::HTML, {:autolink => true}.merge(options)) end
Public Instance Methods
to_html()
click to toggle source
# File lib/acts_as_markup/exts/redcarpet.rb, line 12 def to_html markdown_processor.render(text) end