Class: RDiscount

Inherits:
Object
  • Object
show all
Includes:
Stringlike
Defined in:
lib/acts_as_markup_on/exts/rdiscount.rb

Instance Method Summary collapse

Methods included from Stringlike

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stringlike

Instance Method Details

#blank?Boolean

used to be compatable with Rails/ActiveSupport

Returns:

  • (Boolean)


12
13
14
# File 'lib/acts_as_markup_on/exts/rdiscount.rb', line 12

def blank?
  self.text.blank?
end

#to_sObject

Used to get the original Markdown text.



7
8
9
# File 'lib/acts_as_markup_on/exts/rdiscount.rb', line 7

def to_s
  self.text
end