From: Jason Lillywhite Date: 2011-10-20T14:38:07+09:00 Subject: Call method on attribute update Hello, I have an attribute in my class called @yn. If I change the value of @yn by doing this: foo.yn = 100.0 How do I cause another method in the class to automatically run? This is what I want to do: If @yn is updated, automatically run method "foo.calcArea". The way I have it now requires me to do: foo.yn = 100.0 foo.calcArea There must be a way to let ruby call that method for me. Thank you! -- Posted via http://www.ruby-forum.com/.