Exception: Transpec::ContextError

Inherits:
ConversionError show all
Defined in:
lib/transpec/conversion_error.rb

Instance Attribute Summary

Attributes included from Annotatable

#message, #source_range

Instance Method Summary collapse

Methods included from Annotatable

#source_buffer

Constructor Details

#initialize(old_syntax, new_syntax, source_range) ⇒ ContextError

Returns a new instance of ContextError.



11
12
13
14
# File 'lib/transpec/conversion_error.rb', line 11

def initialize(old_syntax, new_syntax, source_range)
  message = build_message(old_syntax, new_syntax)
  super(message, source_range)
end