Class: Itex2MML::Parser
- Inherits:
-
Object
- Object
- Itex2MML::Parser
- Defined in:
- lib/itextomml.rb
Class Method Summary collapse
Instance Method Summary collapse
- #block_filter(string) ⇒ Object
- #filter(string) ⇒ Object
- #html_filter(string) ⇒ Object
- #inline_filter(string) ⇒ Object
Class Method Details
.semaphore ⇒ Object
53 54 55 |
# File 'lib/itextomml.rb', line 53 def self.semaphore @semaphore ||= Mutex.new end |
Instance Method Details
#block_filter(string) ⇒ Object
69 70 71 |
# File 'lib/itextomml.rb', line 69 def block_filter(string) parse("\$\$#{string}\$\$", :itex2MML_filter) end |
#filter(string) ⇒ Object
61 62 63 |
# File 'lib/itextomml.rb', line 61 def filter(string) parse(string, :itex2MML_filter) end |
#html_filter(string) ⇒ Object
57 58 59 |
# File 'lib/itextomml.rb', line 57 def html_filter(string) parse(string, :itex2MML_html_filter) end |
#inline_filter(string) ⇒ Object
65 66 67 |
# File 'lib/itextomml.rb', line 65 def inline_filter(string) parse("\$#{string}\$", :itex2MML_filter) end |