Class: OyenCov::MethodRangeParser
- Inherits:
-
Hash
- Object
- Hash
- OyenCov::MethodRangeParser
- Defined in:
- lib/oyencov/method_range_parser.rb
Constant Summary collapse
- @@parsed_files =
{}
Class Method Summary collapse
-
.[](filepath) ⇒ Object
Check cache.
- .parsed_files ⇒ Object
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_files ⇒ Object
9 10 11 |
# File 'lib/oyencov/method_range_parser.rb', line 9 def self.parsed_files @@parsed_files end |