ruby shortcut to self.call
The Ruby shortcut to self.call
is simply []
. This is because call
is a method in Ruby, and methods can be called using the []
notation as a shortcut. So, instead of writing self.call
, you can use self[]
to achieve the same result.