Skip to content

Commit

Permalink
Merge pull request #605 from pvdb/loaded_features_builtin
Browse files Browse the repository at this point in the history
refactor: use `$LOADED_FEATURES` built-in instead of `$"`
  • Loading branch information
hsbt authored Dec 9, 2024
2 parents 42ed2f5 + 7310d7a commit cbea814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def handle_options(argv) # :nodoc:

# Similar to the regular Ruby +require+ command, but will check
# for *.rake files in addition to *.rb files.
def rake_require(file_name, paths=$LOAD_PATH, loaded=$") # :nodoc:
def rake_require(file_name, paths=$LOAD_PATH, loaded=$LOADED_FEATURES) # :nodoc:
fn = file_name + ".rake"
return false if loaded.include?(fn)
paths.each do |path|
Expand Down

0 comments on commit cbea814

Please sign in to comment.