Class: Spec::Runner::LineNumberQuery

Class | Spec::Runner::LineNumberQuery
In: | lib/spec/runner/line_number_query.rb
Parent: | Object

Parses a spec file and finds the nearest example for a given line number.

### Methods

consider_example_for_best_match consider_example_group_for_best_match determine_best_match example_line_for is_best_match? new parse_location spec_name_for

### Attributes

best_match | [R] |

### Public Class methods

new(run_options)

### Public Instance methods

example_line_for(file, line_number)
spec_name_for(file, line_number)

### Protected Instance methods

consider_example_for_best_match(example, example_group, file, line_number)
consider_example_group_for_best_match(example_group, file, line_number)
determine_best_match(file, line_number)
is_best_match?(file, line_number, example_file, example_line)
parse_location(location)

[Validate]