0.14.0 ๐
This release brings Ruby 3.1 features and more.
New syntax
- (Proposed) Binding instance, class, global variables in pattern matching (
42 => @v) (#18408).
This brings back rightward assignment: 42 => @v.
-
Shorthand Hash/kwarg notation (
data = {x:, y:}orfoo(x:, y:)) (#15236). -
Pinning instance, class and global variables and expressions (#17724, #17411).
-
Anonymous blocks
def b(&); c(&); end(#11256). -
Command syntax in endless methods (
def foo() = puts "bar") (#17398) -
Support omitting parentheses in one-line pattern matching (
{a: 1} in a:)
New APIs
Refinement#import_methods(#17429)
(There are some limitations though).