Actions
Feature #9929
openadd with_default method to Hash
Feature #9929:
add with_default method to Hash
Status:
Open
Assignee:
-
Target version:
-
Description
I would like to be able to write this:
instead of:
or, perhaps:
Just wondering if anyone else would be interested in a change like this. I posted a pull request in Rails for an ActiveSupport core extension that does the same thing but would love to see it in Ruby proper. (Pull request is at https://github.com/rails/rails/pull/15626)
No data to display
Actions