Nov 24, 2019
Ruby 2.7 adds supports for Comparable#clamp with a range
Ruby 2.7 adds supports for Comparable#clamp with a range
Oct 24, 2019
Ruby 2.7 adds inherit as an optional argument to Module#autoload?
Ruby 2.7 has added inherit as an optional argument to Module#autoload? to check if a given class or module has an autoload defined for a certain constant
Oct 17, 2019
Ruby 2.7 adds UnboundMethod#bind_call method
Ruby 2.7 has added bind_call method to UnboundMethods to avoid the allocation from intermediate Method object
Oct 7, 2019
Ruby 2.7 deprecates automatic conversion from a hash to keyword arguments
Ruby 2.7 deprecates automatic conversion from a hash to keyword arguments in preparation for real keyword arguments in Ruby 3.0
Oct 3, 2019
Ruby 2.7 adds Enumerator::Lazy#eager
Ruby 2.7 added `eager` method to the Enumerator::Lazy class
Sep 24, 2019
Ruby 2.7 adds Integer#[] to support range values
Ruby 2.7 has extended `Integer#[]` to support range arguments which makes expressions cleaner and more readable
Sep 17, 2019
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
Sep 2, 2019
Ruby 2.7 adds warning for Proc.new and proc without block and error for lambda without block
In Ruby 2.7 Proc.new and proc with no block in a method called with a block is warned now and lambda with no block in a method called with a block will give errors.
Sep 1, 2019
Ruby 2.7 adds FrozenError#receiver
Ruby 2.7 has added `FrozenError#receiver` to return the frozen object on which modification was attempted
Aug 20, 2019
Ruby 2.7 adds Time#ceil and Time#floor methods
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