Skip to content

Commit

Permalink
README details
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Apr 24, 2023
1 parent 2536086 commit e07c1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ module Net::HTTP::NicheFeature
end
```

`for_gem_extension` expects as argument the namespace being extended, which has to be a non-anonymous class or module object.
`Zeitwerk::Loader.for_gem_extension` expects as argument the namespace being extended, which has to be a non-anonymous class or module object.

If it exists, the file `lib/net/http/niche_feature/version.rb` is expected to define `Net::HTTP::NicheFeature::VERSION`.
If it exists, `lib/net/http/niche_feature/version.rb` is expected to define `Net::HTTP::NicheFeature::VERSION`.

Due to technical reasons, the entry point of the gem has to be loaded with `Kernel#require`. Loading that file with `Kernel#load` or `Kernel#require_relative` won't generally work. This is important if you load the entry point from the optional dasherized top-level file.

Expand Down

0 comments on commit e07c1e5

Please sign in to comment.