Skip to content

Commit

Permalink
Rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Oct 9, 2024
1 parent 0563dcc commit 984a21f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
## 2.7.0 (Unreleased)

* [Explicit namespaces](https://github.com/fxn/zeitwerk#explicit-namespaces) can
now be defined using constant assignments.
now also be defined using constant assignments.

Constant assignments like
While constant assignments like

```ruby
# coordinates.rb

Coordinates = Data.define(:x, :y)
```

worked for classes and modules, except if they were also namespaces. That is,
if they additionally had matching subdirectories. In such cases, their child
constants could not be autoloaded.
worked for most objects, they did not for class and modules that were also
namespaces (i.e., those with matching subdirectories). In such cases, their
child constants could not be autoloaded.

This limitation has been removed.

Expand Down

0 comments on commit 984a21f

Please sign in to comment.