Exception: MathML::LaTeX::ParseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ParseError.



407
408
409
410
411
# File 'lib/math_ml.rb', line 407

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

Instance Attribute Details

#doneObject

Returns the value of attribute done.



406
407
408
# File 'lib/math_ml.rb', line 406

def done
  @done
end

#restObject

Returns the value of attribute rest.



406
407
408
# File 'lib/math_ml.rb', line 406

def rest
  @rest
end

Instance Method Details

#inspectObject



413
414
415
# File 'lib/math_ml.rb', line 413

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