class FifthedSim::Compiler::CompileError

Attributes

char[R]
line[R]
tree_cause[R]

Public Class Methods

new(err) click to toggle source
Calls superclass method
# File lib/fifthed_sim/compiler.rb, line 23
def initialize(err)
  msg = err.message
  super(msg)
  @line = msg.match(/line (\d+)/)[1].to_i
  @char = msg.match(/char (\d+)/)[1].to_i
  @tree_cause = err.cause.ascii_tree
end