Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Outdated Entry in Hash #393

Open
Castone22 opened this issue Sep 9, 2020 · 0 comments
Open

[doc] Outdated Entry in Hash #393

Castone22 opened this issue Sep 9, 2020 · 0 comments

Comments

@Castone22
Copy link

Castone22 commented Sep 9, 2020

# Hashes are also commonly used as a way to have named parameters in functions.
# Note that no brackets are used below. If a hash is the last argument on a
# method call, no braces are needed, thus creating a really clean interface:
#
# Person.create(name: "John Doe", age: 27)
#
# def self.create(params)
# @name = params[:name]
# @age = params[:age]
# end

Doc entry at the linked line isn't compliant with ruby 2.7 anymore... I'm not really sure what the best way to present the alternative would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant