Quick Intro to Ruby Endless Method
The endless method was added to Ruby version 3.0 in 2020. In a previous article, I wrote about its history and presented an example of how it was used to refactor a piece of code. Now I am going to explore some use cases.Here is how it is described in the Ruby doc (see the yellow part):.
Quick Intro to Ruby Endless Method #ruby #rubydeveloper #rubyonrails https://www.rubyonrails.ba/single/quick-intro-to-ruby-endless-method