Continually experimenting with new ideas and techniques — Reconstructing, Developing, Modernising.
I have been playing with some of the gems I installed for my rvm rubies, and the first couple I have looked at are pretty simple – map_by_method and awsome_print.
My trivial code snippet is here:
# Trivial class with name and gender methods
attr_reader :name, :gender
def initialize(name, gender)
@name, @gender = name, gender
people = [ Person.new('Mike', 'M'), Person.new('Derek', 'M') ]
Other blog posts about these gems include http://rpheath.com/posts/246-map-by-method-gem and http://www.rubyinside.com/awesome_print-a-new-pretty-printer-for-your-ruby-objects-3208.html