Ruby 2.7 adds shorthand syntax for arguments forwarding – Saeloun Blog

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.
Ruby 2.7 adds shorthand syntax for arguments forwarding – Saeloun Blog #ruby #rubydeveloper #rubyonrails #blog https://rubyonrails.ba/single/ruby-2-7-adds-shorthand-syntax-for-arguments-forwarding-saeloun-blog

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles