From: "phluid61 (Matthew Kerwin)" Date: 2013-06-23T15:24:04+09:00 Subject: [ruby-core:55600] [ruby-trunk - Feature #8563] Instance variable arguments Issue #8563 has been updated by phluid61 (Matthew Kerwin). =begin Question: would this be valid? def foo(@foo=@foo) end Asking here, because #5825 as written only talks about initialize method, and the above construct wouldn't make sense there. =end ---------------------------------------- Feature #8563: Instance variable arguments https://bugs.ruby-lang.org/issues/8563#change-40089 Author: sawa (Tsuyoshi Sawada) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: syntax Target version: Next Major =begin Often times, people want to assign given arguments to instance variables, especially inside the method `initialize`: def initialize foo, bar, buz @foo, @bar, @buz = foo, bar, buz ... end I propose to let method definition take instance variables as arguments so that: def initialize @foo, @bar, @buz ... end would be equivalent as above. =end -- http://bugs.ruby-lang.org/