| Conditions | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | require_relative "file_system" |
|
| 21 | 1 | def extract_entry(files, entry) |
|
| 22 | 2 | files.each do |_, filename| |
|
| 23 | 3 | next unless entry.name.match(filename) |
|
| 24 | # `true` in the block ensures any existing files are overwritten |
||
| 25 | 2 | entry.extract(FileSystem.tmpfile_path(filename)) { true } |
|
| 26 | 2 | break |
|
| 27 | end |
||
| 28 | end |
||
| 29 | 1 | private_class_method :extract_entry |
|
| 33 |