Ruby

Ruby Adds Rightward Assignment Support

Previously ruby used to support only Rvalue to be assigned to Lvalue. Now, it adds support for Rightward assignment

Ruby Adds Find Pattern in Pattern Matching

Find pattern is introduced in pattern matching, which is useful in matching arrays.

Ruby 3.0 Changes Proc Autosplatting Behavior

Ruby 3.0 changed the inconsistent behavior for autosplatting, when rest argument and keyword arguments are present for a Proc

Ruby Adds Endless Method Definition

Ruby has added a new experimental syntax for defining single-line methods without using the end keyword.

Heredocs in Ruby and Rails Explained

What are heredoc and different ways to use them in Ruby and Rails.

Rails Adds round_mode to Number Helpers

Rails has added :round_mode parameter support to number helpers

Ruby 2.7 Warns Setting $ Special Variables

In Ruby 2.7, setting special variable $, $; $/ $\ to non-nil values will now show a deprecated warning

Ruby 2.7 removes taint checking mechanism

Ruby 2.7 access and setting of $SAFE is now always warned. $SAFE will become a normal global variable in Ruby 3.0

Ruby 2.7 Warns Singleton Class Yield Syntax

Ruby 2.7 singleton class yield syntax is warned and will be deprecated in Ruby 3.0.

Ruby Method Arguments and Arity Explained

Deep dive into different ways of passing arguments to methods and how it affects their arity