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 f80eecf
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 classes and modules that were also
namespaces (i.e., those defined by a file and matching subdirectories). In
such cases, their child constants could not be autoloaded.

This limitation has been removed.

Expand Down

0 comments on commit f80eecf

Please sign in to comment.