Exception: Rufo::SyntaxError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, lineno) ⇒ SyntaxError

Returns a new instance of SyntaxError.



10
11
12
13
# File 'lib/rufo.rb', line 10

def initialize(message, lineno)
  super(message)
  @lineno = lineno
end

Instance Attribute Details

#linenoObject (readonly)

Returns the value of attribute lineno.



8
9
10
# File 'lib/rufo.rb', line 8

def lineno
  @lineno
end