Exception: CTokenizer::Error

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

Overview

Expression

Instance Method Summary collapse

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_sObject



55
56
57
# File 'lib/dbc/ctokenizer.rb', line 55

def to_s
	"#{@file + ':' if @file}#{@line}: #{super}"
end