What about using this as ruby-Fibonacci-Example? It highlights rubys
uniqe "all is a class" feature and is a little faster than the original
fib.rb:


# calculate Fibonacci(20)
# for benchmark
class Integer
  def fib
   if self<2
    self
   else
    (self-2).fib + (self-1).fib
   end
  end
end
print(20.fib, "\n");

-- 
Fritz Heinrichmeyer mailto:fritz.heinrichmeyer / fernuni-hagen.de
FernUniversitaet Hagen, LG ES, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355 http://www-es.fernuni-hagen.de/~jfh