Exception: Curlybars::Error::Validate

Inherits:
Base
  • Object
show all
Defined in:
lib/curlybars/error/validate.rb

Instance Attribute Summary

Attributes inherited from Base

#id, #metadata, #position

Instance Method Summary collapse

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, message, 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, message, position, )
end