Ruby Method Overloading

Method Overloading is a programming language feature that allows you to define multiple signatures (and implementations) of the same method.Ruby doesn’t have such a feature. It was a shocking discovery when I switched from Java.. a very long time ago.We can somehow trick the language using optional and keyword arguments.But how can we have real isolated implementations of the same method? I wrote a hack to make this possible based on method arity.
Ruby Method Overloading #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/ruby-method-overloading

Nezir Zahirovic

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

related articles