Ruby

Ruby 2.7 adds Enumerator::Lazy#eager

Ruby 2.7 added `eager` method to the Enumerator::Lazy class

Ruby 2.7 Adds Integer#[] Range Support

Ruby 2.7 has extended `Integer#[]` to support range arguments which makes expressions cleaner and more readable

What's New in IRB with Ruby 2.7

List of new and experimental features in the Interactive Ruby Shell(IRB) which are introduced with Ruby 2.7.

Ruby 2.7 adds Module#const_source_location

Ruby 2.7 has added Module#const_source_location to get the source location of a constant

Ruby 2.7 Warns Proc.new/proc Without Block

In Ruby 2.7, Proc.new or proc without a block now emit warnings when a block is passed, while lambda without a block raises an error.

Ruby 2.7 adds FrozenError#receiver

Ruby 2.7 has added `FrozenError#receiver` to return the frozen object on which modification was attempted

Ruby 2.7 Adds Time#ceil and Time#floor

Ruby 2.7 adds Time#ceil and Time#floor methods to round up and down the decimal part of Time (nanosecond) to the specified digit

Ruby 2.7 Adds Beginless Range Support

A beginless range is experimentally introduced in ruby 2.7.

Ruby 2.7 Introduces Enumerable#filter_map

Ruby 2.7 introduces Enumerable#filter_map, combining filter and map into a single, efficient method call

Ruby 2.7 adds Enumerable#tally

Ruby 2.7 has added Enumerable#tally. It helps to tally occurrences of elements in an Enumerable.