Skip to content

Instantly share code, notes, and snippets.

View mikekreeki's full-sized avatar

Michal Krejčí mikekreeki

View GitHub Profile
@mikekreeki
mikekreeki / require.rb
Created April 26, 2012 15:07
multiple require refactorings
require 'nokogiri'
require 'active_support'
require 'benchmark'
# equal to...
list = ['nokogiri', 'active_support', 'benchmark']
## never use `for` cycle (unless you know exactly why), it's considered a bad practice,
## you save one method call since `for` calls `each` method internally anyway