Introduce defp keyword for defining overloadable, pattern matched methods
14-Jul-2023 523
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 #Introduce #keyword #defining #overloadable, #pattern #matched #methods https://rubyonrails.ba/link/introduce-defp-keyword-for-defining-overloadable-pattern-matched-methods