{"height":"190","image_url":null,"published":"2020-12-23 23:34:33","provider_url":"https://hatena.blog","categories":["AdventCalendar","Ruby","bugs.ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2020%2F12%2F23%2F233433\" title=\"\u3010\u4e00\u4eba bugs.ruby Advent Calendar 2020\u3011[Feature #16986] Anonymous Struct literal\u301023\u65e5\u76ee\u3011 - 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>","width":"100%","description":"\u3010\u4e00\u4eba bugs.ruby Advent Calendar 2020\u3011[Feature #16986] Anonymous Struct literal\u301023\u65e5\u76ee\u3011 \u4e00\u4eba bugs.ruby Advent Calendar 2020 23\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 [Feature #16986] Anonymous Struct literal \u3053\u308c\u306f Struct.new(:a, :b).new(1, 2) \u3092 ${ a: 1, b: 2 } \u306e\u3088\u3046\u306a\u30ea\u30c6\u30e9\u30eb\u3067\u5b9a\u7fa9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u30c1\u30b1\u30c3\u30c8\u3067\u3059\u3002 s = ${a: 1, b: 2, c: 3} s.a # => 1 s.b # => 2 s.c\u2026","type":"rich","title":"\u3010\u4e00\u4eba bugs.ruby Advent Calendar 2020\u3011[Feature #16986] Anonymous Struct literal\u301023\u65e5\u76ee\u3011","blog_url":"https://secret-garden.hatenablog.com/","provider_name":"Hatena Blog","url":"https://secret-garden.hatenablog.com/entry/2020/12/23/233433","author_url":"https://blog.hatena.ne.jp/osyo-manga/","version":"1.0","blog_title":"Secret Garden(Instrumental)","author_name":"osyo-manga"}