class Mathtype::Converter
Public Class Methods
new(equation)
click to toggle source
# File lib/ruby_docx/elements/ole_object.rb, line 8 def initialize(equation) ole = Ole::Storage.open(equation) eq = ole.file.read("Equation Native")[28..-1] data = Mathtype::Equation.read(eq).snapshot @builder = Nokogiri::XML::Builder.new do |xml| @xml = xml xml.root do process(object: data) end end end