minho.rb code review - small refactors