Class: Transpec::AccuracyAnnotation

Inherits:
Annotation show all
Defined in:
lib/transpec/record.rb

Instance Attribute Summary

Attributes included from Annotatable

#message, #source_range

Instance Method Summary collapse

Methods included from Annotatable

#source_buffer

Constructor Details

#initialize(source_range) ⇒ AccuracyAnnotation

Returns a new instance of AccuracyAnnotation.



141
142
143
144
145
146
147
# File 'lib/transpec/record.rb', line 141

def initialize(source_range)
  message = "The `#{source_range.source}` has been converted " \
            'but it might possibly be incorrect ' \
            'due to a lack of runtime information. ' \
            "It's recommended to review the change carefully."
  super(message, source_range)
end