From: Dirk Meijer Date: 2006-01-22T04:31:11+09:00 Subject: Re: method proposition ------=_Part_15141_18479074.1137871856133 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > er, the global value 'true' is the only instance of TrueClass. so, > doing true.switch! would make true become false? > > So then, > if 1 =3D=3D 1 > puts "hi" > end > > Wouldn't print anything? that, on second thought, probably wouldn't work, and the following would have to be used: light_switch=3Dfalse light_switch=3Dlight_switch.switch if dark=3D=3Dtrue ------=_Part_15141_18479074.1137871856133--