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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper