Ruby 2.7 adds shorthand syntax for arguments forwarding – Saeloun Blog

05-Dec-2019 4183
The idea of ... operator is to capture all and forward arguments irrespective of type. So we can forward single, keyword arguments or blocks.Its a shorthand syntax to forward everything. It acts similar to calling super without any arguments.Lets take a look at it with an example. Consider we define a method that accepts some regular, keyword and block arguments.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle