Exception: Faml::SyntaxError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, lineno) ⇒ SyntaxError

Returns a new instance of SyntaxError.



5
6
7
8
# File 'lib/faml/syntax_error.rb', line 5

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

Instance Attribute Details

#lineno ⇒ Object (readonly)

Returns the value of attribute lineno.



3
4
5
# File 'lib/faml/syntax_error.rb', line 3

def lineno
  @lineno
end