Project

General

Profile

Actions

Feature #8038

closed

Keyword `object` to be used instead of `class <<`

Added by alexeymuranov (Alexey Muranov) almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
[ruby-core:53182]

Description

=begin
I propose to introduce a new keyword (({object})) and to use it instead of the mysterious (({class <<})):

object foo
def bar
# ...
end
def baz
# ...
end
end

instead of

foo = Object.new
class << foo
def bar
# ...
end
def baz
# ...
end
end
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0