From: "mame (Yusuke Endoh)" Date: 2012-03-30T08:37:43+09:00 Subject: [ruby-core:43910] [ruby-trunk - Feature #6224][Assigned] Make variables in if/unless conditions available to conditional statements Issue #6224 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to matz (Yukihiro Matsumoto) ---------------------------------------- Feature #6224: Make variables in if/unless conditions available to conditional statements https://bugs.ruby-lang.org/issues/6224#change-25426 Author: gcao (Guoliang Cao) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) 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/