Ruby 2 - Module#prepend
Whilst the usefulness of most Ruby 2 features is pretty obvious, the uses of Module#prepend weren’t as instantly apparent to me.
In this post I explored a potential use of Module#prepend and saw the point of it.
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!
Whilst the usefulness of most Ruby 2 features is pretty obvious, the uses of Module#prepend weren’t as instantly apparent to me.
In this post I explored a potential use of Module#prepend and saw the point of it.
Post a comment