class method
DidYouMean::RequirePathChecker.requireables
() -> ::Array[::String]
requireables
lib/did_you_mean/spell_checkers/require_path_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/did_you_mean/spell_checkers/require_path_checker.rb, line 19
def self.requireables
@requireables ||= INITIAL_LOAD_PATH
.flat_map {|path| Dir.glob("**/???*{.rb,#{ENV_SPECIFIC_EXT}}", base: path) }
.map {|path| path.chomp!(".rb") || path.chomp!(ENV_SPECIFIC_EXT) }
end
No documentation available