Actions
Feature #14025
open#initialize with ivars
    Feature #14025:
    #initialize with ivars
  
Status:
Open
Assignee:
-
Target version:
-
Description
For:
class Person
def initialize name = 'person'
@name = name
end
end
I thought that the following would be nice:
class Person
initialize :name
end
class Person
initialize name: 'person', age: 18
end
class Person
def initialize @name="person", @age=18
puts "initializing...something to run before"
end
end
--
B., Frank.
Actions