From: 7stud -- Date: 2011-02-26T09:12:50+09:00 Subject: Re: method v. local assignment: parsing rule for this code? Ok, the following code exhibits the problem I was trying to demonstrate: class Roulette def method_missing(name, *args) person = name.to_s.capitalize 3.times do number = rand(10) + 1 puts "#{number}..." end #puts "#{person} got a #{number}" end end Roulette.new.xxx If I uncomment the commented line, I get an infinite loop. Why? I'm pretty sure that is a local variable assignment v. setter problem. -- Posted via http://www.ruby-forum.com/.