# File lib/redcloth/formatters/base.rb, line 4 4: def ignore(opts) 5: opts[:text] 6: end
# File lib/redcloth/formatters/base.rb, line 54
54: def after_transform(text)
55:
56: end
# File lib/redcloth/formatters/base.rb, line 50
50: def before_transform(text)
51:
52: end
# File lib/redcloth/formatters/base.rb, line 58
58: def formatter_methods
59: singleton_methods.map! {|method| method.to_sym }
60: end
# File lib/redcloth/formatters/base.rb, line 46
46: def method_missing(method, opts)
47: opts[:text] || ""
48: end
# File lib/redcloth/formatters/base.rb, line 26
26: def pba(opts)
27: opts.delete(:style) if filter_styles
28: opts.delete(:class) if filter_classes
29: opts.delete(:id) if filter_ids
30:
31: atts = ''
32: opts[:"text-align"] = opts.delete(:align)
33: opts[:style] += ';' if opts[:style] && (opts[:style][1..1] != ';')
34: [:float, :"text-align", :"vertical-align"].each do |a|
35: opts[:style] = "#{a}:#{opts[a]};#{opts[:style]}" if opts[a]
36: end
37: [:"padding-right", :"padding-left"].each do |a|
38: opts[:style] = "#{a}:#{opts[a]}em;#{opts[:style]}" if opts[a]
39: end
40: [:style, :class, :lang, :id, :colspan, :rowspan, :title, :start, :align].each do |a|
41: atts << " #{a}=\"#{ html_esc(opts[a].to_s, :html_escape_attributes) }\"" if opts[a]
42: end
43: atts
44: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.