Method: TeXMath::Converter#initialize

Defined in:
lib/texmath/converter.rb

#initialize(options = {}) ⇒ Converter

Create a new Converter.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :executable (String) — default: 'texmath'

    the executable path

  • :from (Symbol) — default: :tex

    the source format

  • :to (Symbol) — default: :mathml

    the destination format



36
37
38
39
40
# File 'lib/texmath/converter.rb', line 36

def initialize(options = {})
  @executable = options.fetch(:executable, 'texmath')
  self.reader = options.fetch(:from, :tex)
  self.writer = options.fetch(:to, :mathml)
end