Ruby 2.7 adds Beginless Range
27-Aug-2020 1814
This blog is part of our Ruby 2.7 series. Ruby 2.7.0 was released on Dec 25, 2019.Ruby 2.7 added support for Beginless Range which makes the start of range an optional parameter.(..100) is a Beginless Range and it is equivalent to (nil..100).Let’s see how Beginless Range could be used.
Ruby 2.7 adds Beginless Range #ruby #rubydeveloper #rubyonrails #Beginless #Range https://www.rubyonrails.ba/link/ruby-2-7-adds-beginless-range