From: "gcao (Guoliang Cao)" Date: 2012-03-29T23:13:38+09:00 Subject: [ruby-core:43861] [ruby-trunk - Feature #6224][Open] Make variables in if/unless conditions available to conditional statements Issue #6224 has been reported by gcao (Guoliang Cao). ---------------------------------------- Feature #6224: Make variables in if/unless conditions available to conditional statements https://bugs.ruby-lang.org/issues/6224 Author: gcao (Guoliang Cao) Status: Open Priority: Normal Assignee: Category: core Target version: I propose to make below code work do_something(a) if a = condition Above code should work exactly same as if a = condition do_something(a) end If there is a reason behind why the first case does not work, please let me know. Thank you. Guoliang Cao -- http://bugs.ruby-lang.org/