Class: Itex2MML::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/itextomml.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.semaphoreObject



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