Module: Transpec::Annotatable
- Included in:
- Annotation, ConversionError
- Defined in:
- lib/transpec/annotatable.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#source_range ⇒ Object
readonly
Returns the value of attribute source_range.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/transpec/annotatable.rb', line 5 def end |
#source_range ⇒ Object (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(, source_range) = @source_range = source_range end |
#source_buffer ⇒ Object
12 13 14 |
# File 'lib/transpec/annotatable.rb', line 12 def source_buffer source_range.source_buffer end |