class Mathtype::OleFileParser

Public Class Methods

new(path) click to toggle source
# File lib/file_parser/ole.rb, line 6
def initialize(path)
  read_from_file(path)
end

Public Instance Methods

read_from_file(path) click to toggle source
# File lib/file_parser/ole.rb, line 9
def read_from_file(path)
  ole = Ole::Storage.open(path, "rb+")
  @equation = ole.file.read("Equation Native")[28..-1]
  ole.close
end