RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

RubyNext 0.11.0: Ruby 3.0 support and shorthand kwarg syntax

This RubyNext release is dedicated to the upcoming release of Ruby 3.0.

RubyNext now supports Ruby 3.0 new syntax features: endless methods, find pattern for pattern matching, single-line pattern matching (a => x and a in x).

As a bonus, we also extended the proposed shorthand Hash syntax to support kwargs in method calls as well:

x = 1
y = 2

foo x:, y: #= foo x: x, y: y

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in