not a incompatbile, but a feature
The change of `Object#singleton_method` doesn't harm existing code so it should be new feature (bug fix).
This commit is contained in:
parent
2a08f7283e
commit
ab8fd5bb6c
Notes:
git
2024-12-24 01:47:37 +00:00
20
NEWS.md
20
NEWS.md
@ -79,6 +79,17 @@ Note: We're only listing outstanding class updates.
|
||||
|
||||
* `MatchData#bytebegin` and `MatchData#byteend` have been added. [[Feature #20576]]
|
||||
|
||||
* Object
|
||||
|
||||
* `Object#singleton_method` now returns methods in modules prepended to or included in the
|
||||
receiver's singleton class. [[Bug #20620]]
|
||||
|
||||
```rb
|
||||
o = Object.new
|
||||
o.extend(Module.new{def a = 1})
|
||||
o.singleton_method(:a).call #=> 1
|
||||
```
|
||||
|
||||
* Ractor
|
||||
|
||||
* `require` in Ractor is allowed. The requiring process will be run on
|
||||
@ -375,15 +386,6 @@ The following bundled gems are promoted from default gems.
|
||||
"1.E-1".to_f #=> 0.1 (previously, 1.0 was returned)
|
||||
```
|
||||
|
||||
* `Object#singleton_method` now returns methods in modules prepended to or included in the
|
||||
receiver's singleton class. [[Bug #20620]]
|
||||
|
||||
```rb
|
||||
o = Object.new
|
||||
o.extend(Module.new{def a = 1})
|
||||
o.singleton_method(:a).call #=> 1
|
||||
```
|
||||
|
||||
* `Refinement#refined_class` has been removed. [[Feature #19714]]
|
||||
|
||||
## Stdlib compatibility issues
|
||||
|
Loading…
x
Reference in New Issue
Block a user