5 Oct 23:22
[ruby-core:19132] [Feature #615] "with" operator
From: Lavir the Whiolet <redmine <at> ruby-lang.org>
Subject: [ruby-core:19132] [Feature #615] "with" operator
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-10-05 21:24:46 GMT
Subject: [ruby-core:19132] [Feature #615] "with" operator
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-10-05 21:24:46 GMT
Feature #615: "with" operator http://redmine.ruby-lang.org/issues/show/615 Author: Lavir the Whiolet Status: Open, Priority: Normal Category: core, Target version: 2.0 "with" operator is required. It must work like an ordinary method which gets one arguemnt and a block. All expressions in the block are not required to point the argument explicitly; all method calls are related to the argument by default. Example: x = "Sample" with x do puts class puts reverse end would produce: String elpmaS ---------------------------------------- http://redmine.ruby-lang.org
RSS Feed