Introduce defp keyword for defining overloadable, pattern matched methods

Pattern matching has become one of my favorite features of Ruby, if not my favorite. It changed the way I write and express my thoughts through clean, maintainable code. And I'd like to use it more.I propose a new keyword, defp, for defining a method which applies pattern matching to its arguments.
Introduce defp keyword for defining overloadable, pattern matched methods #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/introduce-defp-keyword-for-defining-overloadable-pattern-matched-methods

Nezir Zahirovic

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

related articles