Prototypes in Ruby and the strange story of dup
In one refactoring step I removed the duplication in passing attributes by using a prototype. Although at that moment I haven’t thought of the object in such way.
Prototypes in Ruby and the strange story of dup #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/prototypes-in-ruby-and-the-strange-story-of-dup