Exception: CTokenizer::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CTokenizer::Error
- Defined in:
- lib/caphir/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.
56 57 58 59 |
# File 'lib/caphir/ctokenizer.rb', line 56 def initialize(file, line) @file = file @line = line end |
Instance Method Details
#to_s ⇒ Object
60 61 62 |
# File 'lib/caphir/ctokenizer.rb', line 60 def to_s "#{@file + ':' if @file}#{@line}: #{super}" end |