Module: RedCloth::Formatters::Base

Included in:
HTML, LATEX
Defined in:
lib/redcloth/formatters/base.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, opts) ⇒ Object (private)


46
47
48
# File 'lib/redcloth/formatters/base.rb', line 46

def method_missing(method, opts)
  opts[:text] || ""
end

Instance Method Details

#ignore(opts) ⇒ Object Also known as: notextile


4
5
6
# File 'lib/redcloth/formatters/base.rb', line 4

def ignore(opts)
  opts[:text]
end

#inline_redcloth_version(opts) ⇒ Object


13
14
15
# File 'lib/redcloth/formatters/base.rb', line 13

def inline_redcloth_version(opts)
  RedCloth::VERSION::STRING
end

#redcloth_version(opts) ⇒ Object


9
10
11
# File 'lib/redcloth/formatters/base.rb', line 9

def redcloth_version(opts)
  p(:text => "#{opts[:prefix]}#{RedCloth::VERSION}")
end