One of the most beautiful things in Ruby that I have ever seen is this fibonacci code.
fib = Hash.new do |k, v|
next 1 if v == 0 || v == 1
k[v-1] + k[v-2]
end