Module: Lisp::Format::Positioned

Included in:
ArgumentError, IndexError, ParameterError, SyntaxError
Defined in:
lib/carat/lisp-format.rb

Overview

An error, positioned somewhere in the input format. This is used to be able to show the user exactly where something failed in the input format string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#posObject

The position at which the error occured.



81
82
83
# File 'lib/carat/lisp-format.rb', line 81

def pos
  @pos
end

Instance Method Details

#initialize(pos = -1)) ⇒ Object

Create at a given position.



76
77
78
# File 'lib/carat/lisp-format.rb', line 76

def initialize(pos = -1)
  @pos = pos
end