In Ruby, how do I check if method "foo=()" is defined? In Ruby, how do I check if method "foo=()" is defined? ruby ruby