Exception: CTokenizer::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CTokenizer::Error
- Defined in:
- lib/dbc/ctokenizer.rb
Overview
Expression
Instance Method Summary collapse
-
#initialize(file, line) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(file, line) ⇒ Error
Returns a new instance of Error.
51 52 53 54 |
# File 'lib/dbc/ctokenizer.rb', line 51 def initialize(file, line) @file = file @line = line end |
Instance Method Details
#to_s ⇒ Object
55 56 57 |
# File 'lib/dbc/ctokenizer.rb', line 55 def to_s "#{@file + ':' if @file}#{@line}: #{super}" end |