Exception: CTokenizer::Error

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

Overview

Expression

Instance Method Summary collapse

Constructor Details

#initialize(file, line) ⇒ Error

Returns a new instance of Error.


56
57
58
59
# File 'lib/caphir/ctokenizer.rb', line 56

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

Instance Method Details

#to_sObject


60
61
62
# File 'lib/caphir/ctokenizer.rb', line 60

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