Ruby 4.0.0 preview2 Released
Posted by naruse on 17 Nov 2025
We are pleased to announce the release of Ruby 4.0.0-preview2. Ruby 4.0 updates its Unicode version to 17,0.0, and so on.
Language changes
*nil no longer calls nil.to_a, similar to how **nil does
not call nil.to_hash. [[Feature #21047]]
Core classes updates
Note: We’re only listing notable updates of Core class.
Binding
Binding#local_variables does no longer include numbered parameters.
Also, Binding#local_variable_get and Binding#local_variable_set reject to han...
Read more at ruby-lang.org