The three types of methods in Ruby - DEV Community
19-Feb-2024 774
In this short post I will look at some patterns in Ruby methods and their naming conventions.The most prominent pattern is delineation of methods that produce a value and no side-effects from methods with side-effects. I achieve this by only using verbs in side-effect-producing method names, whereas methods with only return value get adjectives and nouns.
The three types of methods in Ruby - DEV Community #ruby #rubydeveloper #rubyonrails #three #types #methods #Community #dev #types https://rubyonrails.ba/link/the-three-types-of-methods-in-ruby-dev-community