yield default object
A pattern for passing object with default values for the caller to change only some parts of it. We often use it in testing.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
A pattern for passing object with default values for the caller to change only some parts of it. We often use it in testing.
Post a comment