{"author_name":"osyo-manga","categories":["Ruby"],"title":"Hash \u306e\u30ad\u30fc\u306e\u8981\u7d20\u306b\u30e1\u30bd\u30c3\u30c9\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b","provider_url":"https://hatena.blog","blog_url":"https://secret-garden.hatenablog.com/","published":"2015-03-07 23:32:16","url":"https://secret-garden.hatenablog.com/entry/2015/03/07/233216","image_url":null,"version":"1.0","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F03%2F07%2F233216\" title=\"Hash \u306e\u30ad\u30fc\u306e\u8981\u7d20\u306b\u30e1\u30bd\u30c3\u30c9\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"hash[:key] \u3092 hash.key \u3068\u3044\u3046\u98a8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u7df4\u7fd2\u304c\u3066\u3089\u96d1\u306b\u66f8\u3044\u3066 gem \u306b\u3042\u3052\u3066\u307f\u305f\u3002 install $ gem install hash_with_key_access_method \u4f7f\u3044\u65b9 # Using refinements using HashWithKeyAccessMethod hash = { name: :homu, \"name2\" => :mami} hash.name # to hash[:name] # => :homu # Failed String key access # hash.name2 # Assign new val\u2026","width":"100%","author_url":"https://blog.hatena.ne.jp/osyo-manga/","blog_title":"Secret Garden(Instrumental)","height":"190"}