On 6/1/07, Ruby Quiz <james / grayproductions.net> wrote: > Pretend you've just walked into a job interview and been hit with this question. > Solve it as you would under such circumstances for this week's Ruby Quiz. I'd probably want to do something a little clever but not anything *too* unorthodox, so here's my solution: def replace(n,list=[["FizzBuzz",15],["Buzz",5],["Fizz",3]]) list.each { |r,m| return r if n % m == 0 } return n end puts (1..100).map { |e| replace(e) }