The interpreter looks at "a = num" and assumes that you're referring to 
a local variable "a", rather than the method "a=".

-- 
Posted via http://www.ruby-forum.com/.