Class: OyenCov::MethodRangeParser

Inherits:
Hash
  • Object
show all
Defined in:
lib/oyencov/method_range_parser.rb

Constant Summary collapse

@@parsed_files =
{}

Class Method Summary collapse

Class Method Details

.[](filepath) ⇒ Object

Check cache



14
15
16
17
# File 'lib/oyencov/method_range_parser.rb', line 14

def self.[](filepath)
  @filepath = filepath
  @@parsed_files[@filepath] ||= parse_file(@filepath)
end

.parsed_filesObject



9
10
11
# File 'lib/oyencov/method_range_parser.rb', line 9

def self.parsed_files
  @@parsed_files
end