I would like to create a date object by doing something like
Would you like to play it like Ruby?
Is it like this?
values is the basic instance method of hash.
It will appear as soon as you search, so please check it yourself.
ruby hash values-Google Search
* is less searchable, so I quote it.
Method call (with super block, field) (Ruby 2.2.0)
If the last argument is preceded by a *, the value of the argument is expanded and passed.Deployment is done via method to_a.I mean:
In other words,
If you pass it as it is, you will get an error.
It means that it is developed and handed over.
The following two have the same meaning.
You may want to search by
As tmtms pointed out,
values_at will be more robust.
You may want to check the difference between
© 2022 OneMinuteCode. All rights reserved.