Skip to content

Commit

Permalink
Make the private shadowed_files internal
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Feb 10, 2023
1 parent 1b5d46f commit 7955120
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/zeitwerk/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ class Loader
# has only scanned the top-level, `shadowed_files` does not have shadowed
# files that may exist deep in the project tree yet.
#
# @private
# @sig Set[String]
attr_reader :shadowed_files
internal :shadowed_files

# @private
# @sig Mutex
Expand Down
4 changes: 2 additions & 2 deletions test/lib/zeitwerk/test_unload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def self.name
loader.push_dir("b")
loader.setup

assert !loader.shadowed_files.empty? # precondition
assert !loader.__shadowed_files.empty? # precondition
loader.unload
assert loader.shadowed_files.empty?
assert loader.__shadowed_files.empty?
end
end

Expand Down

0 comments on commit 7955120

Please sign in to comment.