Created
December 18, 2018 08:28
-
-
Save YumaInaura/e5b80160b20aa15583c7471fdfbfd88e to your computer and use it in GitHub Desktop.
Rails ActiveSupport の HashWithIndifferentAccess って何? ref: https://qiita.com/YumaInaura/items/e652fb8ecdda38ab5569
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HashWithIndifferentAccess.new(a: 1)['a'] | |
| => 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HashWithIndifferentAccess.new(a: 1)[:a] | |
| => 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment