Skip to content

Instantly share code, notes, and snippets.

View zben's full-sized avatar

Ben zben

View GitHub Profile
@zben
zben / run_sample.rb
Created March 15, 2012 19:41
need some critique.
people = People.new.add_dir('./data')
puts 'Output 1:'
people.sort(gender: :asc, last_name: :asc).print
puts
puts 'Output 2:'
people.sort(birthday: :asc).print
puts
puts 'Output 3:'
people.sort(last_name: :desc).print