Blog: ruby Posts 📔

Sharing ideas and code (RSS available)

test

Extending Class methods with Module Mixins

February 1, 2016 · 1 min read

I’m about to finish the Eloquent Ruby book (excellent book by the way) and keep finding ruby pearls of wisdom. One of these is that you can actually use module mixins to...

test

Ruby Hash iteration with index

December 12, 2015 · 1 min read

Ruby Hash (and Array) includes the Enumerable module (mixin), which provides a lot of neat, but also slightly hidden in the documentation, methods. This means that despite the poor advertising you can...

test

Ruby tips

September 14, 2015 · 4 min read

I just read the Ruby Pocket Reference, a great intro for the Ruby language and want to share a few helpful Ruby tips learned. PARALLEL ASSIGNMENT OF VARIABLES In Ruby, you can assign...