How to pass arguments to methods in ruby and how it affects their arity
06-Feb-2020 1389
We had mentioned in one of our previous blog that the method definition in Ruby is extremely flexible. Let’s delve a little deeper into that statement and talk about the different type of arguments a method can take and how it affects its arity.Let’s once again use the example from Marc-André Lafortune blog.
How to pass arguments to methods in ruby and how it affects their arity #ruby #rubydeveloper #rubyonrails #arguments #methods #affects #their #arity https://rubyonrails.ba/link/how-to-pass-arguments-to-methods-in-ruby-and-how-it-affects-their-arity