Project

General

Profile

Actions

Feature #615

closed

"with" operator

Added by Lavir_the_Whiolet (Lavir the Whiolet) about 16 years ago. Updated almost 13 years ago.

Status:
Rejected
Target version:
-
[ruby-core:19132]

Description

=begin
"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
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0