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.



49
50
51
52
# File 'lib/dbc/ctokenizer.rb', line 49

def initialize(file, line)
	@file = file
	@line = line
end

Instance Method Details

#to_sObject



53
54
55
# File 'lib/dbc/ctokenizer.rb', line 53

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