Method: Mutant::Subject#source_lines
- Defined in:
- lib/mutant/subject.rb
#source_lines ⇒ Range<Integer>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Source line range
55 56 57 58 |
# File 'lib/mutant/subject.rb', line 55 def source_lines expression = node.location.expression expression.line..expression.source_buffer.decompose_position(expression.end_pos).first end |