Recursive Ruby – Fibonacci

15 December 2013
def fibo(num)
  if num < 2
    num
  else
    fibo(num-1) + fibo(num-2)
  end
endfibo(7)
//=>13