Photo by Jeffrey Dungen on Unsplash

The Arguments Forwarding shorthand in Ruby 2.7

How to 3-dots operator can be used to automatically forward arguments to another method call

Tech - RubyCademy
Oct 27, 2020 · 2 min read

Before to start

Please allow me to introduce here the platform that helped me to learn a big part of my knowledge about Ruby. Indeed, Pluralsight is an amazing platform.

syntax error, unexpected def, ...)
  • **kwarg : keywords arguments

UPDATE: Ruby 3

Arguments forwarding now supports leading arguments:

def method_missing(meth, ...)
send(:"do_#{ meth }", ...)


E-Learning platform for Ruby and Ruby on Rails