module Html2latex
Constants
- VERSION
Public Class Methods
add(hash = {})
click to toggle source
# File lib/html2latex.rb, line 23 def self.add (hash = {}) @@tags.merge!(hash) end
delete(key)
click to toggle source
# File lib/html2latex.rb, line 26 def self.delete (key) @@tags.delete(key) end
traduzir(text)
click to toggle source
# File lib/html2latex.rb, line 5 def Html2latex.traduzir(text) Html2latex.translate(text) end
translate(text)
click to toggle source
# File lib/html2latex.rb, line 9 def Html2latex.translate (text) @@tags.each { |key, value| text.gsub! key, value } #Fechamento TAGs text.gsub! /<\/[a-zA-Z1-4>]+/, '}' return text end