From: Mark James Date: 2006-02-19T20:08:36+09:00 Subject: If statement and if modifier not equivalent? I was under the impression that the if modifier and the if statememt were equivalent, but for the following code calling A.test raises an exception, while calling A.test2 succeeds. This is with Ruby 1.8.4. class A def A.test a if a=1 end def A.test2 if a=1 a end end end