From: Tim Hunter Date: 2009-03-02T23:22:52+09:00 Subject: Re: What does this statement do? Stanislaw Wozniak wrote: > Stanislaw Wozniak wrote: >> Hi Guys, >> >> I have been wondering what does this statement do and what does it set. >> It interferes with my methods_missing handler: >> >> {code} >> class MyClass >> >> something = "something else" >> >> end >> {code} > > I guess this is assigning a string to a variable that is created in the > MyClass scope. But my problem is that I have some setter methods that > I'm using through method_missing, but method_missing is never triggered > because it is assigning stuff just like in the example above. You're saying that "something" is supposed to be treated like a method instead of like a variable? Try self.something = "something else" -- RMagick: http://rmagick.rubyforge.org/