Exception: Curlybars::Error::Validate
- Defined in:
- lib/curlybars/error/validate.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(id, message, rltk_position, offset_adjustment = 0, **metadata) ⇒ Validate
constructor
A new instance of Validate.
Constructor Details
#initialize(id, message, rltk_position, offset_adjustment = 0, **metadata) ⇒ Validate
Returns a new instance of Validate.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/curlybars/error/validate.rb', line 6 def initialize(id, , rltk_position, offset_adjustment = 0, **) position = Curlybars::Position.new( rltk_position.file_name, rltk_position.line_number, rltk_position.line_offset + offset_adjustment, rltk_position.length - offset_adjustment ) super('validate.%s' % id, , position, ) end |