Module: Transpec::Annotatable

Included in:
Annotation, ConversionError
Defined in:
lib/transpec/annotatable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/transpec/annotatable.rb', line 5

def message
  @message
end

#source_rangeObject (readonly)

Returns the value of attribute source_range.



5
6
7
# File 'lib/transpec/annotatable.rb', line 5

def source_range
  @source_range
end

Instance Method Details

#initialize(message, source_range) ⇒ Object



7
8
9
10
# File 'lib/transpec/annotatable.rb', line 7

def initialize(message, source_range)
  @message = message
  @source_range = source_range
end

#source_bufferObject



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

def source_buffer
  source_range.source_buffer
end