Module: Indoctrinatr::Tools::RedclothFormattersLatexPatch
- Defined in:
- lib/indoctrinatr/tools/redcloth_formatters_latex_patch.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.apply ⇒ Object
6 7 8 9 10 11 |
# File 'lib/indoctrinatr/tools/redcloth_formatters_latex_patch.rb', line 6 def self.apply const = Kernel.const_get('RedCloth::Formatters::LATEX') const&.prepend(self) rescue NameError => e puts e end |
Instance Method Details
#del(opts) ⇒ Object
35 36 37 |
# File 'lib/indoctrinatr/tools/redcloth_formatters_latex_patch.rb', line 35 def del(opts) "\\st{#{opts[:text]}}" end |