Exception: MathML::LaTeX::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/math_ml/latex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, rest = '', done = '') ⇒ ParseError

Returns a new instance of ParseError.


157
158
159
160
161
# File 'lib/math_ml/latex.rb', line 157

def initialize(message, rest = '', done = '')
  @done = done
  @rest = rest
  super(message)
end

Instance Attribute Details

#doneObject

Returns the value of attribute done.


155
156
157
# File 'lib/math_ml/latex.rb', line 155

def done
  @done
end

#restObject

Returns the value of attribute rest.


155
156
157
# File 'lib/math_ml/latex.rb', line 155

def rest
  @rest
end

Instance Method Details

#inspectObject


163
164
165
# File 'lib/math_ml/latex.rb', line 163

def inspect
  "#{message} : '#{@done}' / '#{@rest}'\n" + backtrace[0..5].join("\n")
end