class

Crytic::Mutation::RequireResolver

Inherits Reference / Object

Instance methods

find_in_path_relative_to_dir(filename, relative_to) : Array(String) | Nil

All of the below code is stolen from crystal itself https://github.com/crystal-lang/crystal/blob/master/src/compiler/crystal/crystal_path.cr Because we are caring about relative requires "./foo/bar" exclusively, a lot of code was removed from this method.

Source