class Maruku
Attributes
text[R]
Public Class Methods
new(s=nil, meta={})
click to toggle source
Calls superclass method
# File lib/acts_as_markup/exts/maruku.rb, line 8 def initialize(s=nil, meta={}) super(nil) self.attributes.merge! meta if s @text = s parse_doc(s) end end
Public Instance Methods
blank?()
click to toggle source
used to be compatable with Rails/ActiveSupport
# File lib/acts_as_markup/exts/maruku.rb, line 23 def blank? @text.blank? end
to_s()
click to toggle source
Used to get the original Markdown text.
# File lib/acts_as_markup/exts/maruku.rb, line 18 def to_s @text end