{"image_url":null,"blog_url":"https://thinkami.hatenablog.com/","version":"1.0","type":"rich","provider_name":"Hatena Blog","published":"2023-04-23 23:14:02","height":"190","width":"100%","categories":["Rails","Ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F2023%2F04%2F23%2F231402\" title=\"Rails + ActiveSupport::InheritableOptions\u3092\u4f7f\u3063\u3066\u3001\u65e2\u5b58\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u30c9\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b - \u30e1\u30e2\u7684\u306a\u601d\u8003\u7684\u306a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u30cf\u30c3\u30b7\u30e5\u306b\u5bfe\u3057\u3066\u30c9\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3088\u3046\u3068\u8abf\u3079\u305f\u3068\u3053\u308d\u3001Ruby\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b OpenStruct \u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u305f\u3081\u3057\u306b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 require 'ostruct' o = OpenStruct.new({foo: 'bar'}) puts o.foo #=> bar \u305f\u3060\u3001Ruby\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u3080\u3068\u3001\u6ce8\u610f\u4e8b\u9805\u304c\u3044\u304f\u3064\u304b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002 https://docs.ruby-lang.org/en/3.2/OpenStruct.html#class-OpenStruct-label-Caveats \u307e\u305f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u6587\u672b\u306b\u306f Fo\u2026","title":"Rails + ActiveSupport::InheritableOptions\u3092\u4f7f\u3063\u3066\u3001\u65e2\u5b58\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u30c9\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b","blog_title":"\u30e1\u30e2\u7684\u306a\u601d\u8003\u7684\u306a","author_url":"https://blog.hatena.ne.jp/thinkAmi/","provider_url":"https://hatena.blog","url":"https://thinkami.hatenablog.com/entry/2023/04/23/231402","author_name":"thinkAmi"}