Exception: Faust2Ruby::Parser::ParseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, line: nil, column: nil) ⇒ ParseError

Returns a new instance of ParseError.



13
14
15
16
17
# File 'lib/faust2ruby/parser.rb', line 13

def initialize(message, line: nil, column: nil)
  @line = line
  @column = column
  super("#{message} at line #{line}, column #{column}")
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



11
12
13
# File 'lib/faust2ruby/parser.rb', line 11

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



11
12
13
# File 'lib/faust2ruby/parser.rb', line 11

def line
  @line
end