{"url":"https://anekos.hatenablog.com/entry/20081121/1227261743","author_url":"https://blog.hatena.ne.jp/nokturnalmortum/","type":"rich","provider_name":"Hatena Blog","image_url":null,"blog_title":"\u5730\u7344\u306e\u30cd\u30b3\u30d6\u30ed\u30b0","categories":["JavaScript"],"title":"\u7f60","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanekos.hatenablog.com%2Fentry%2F20081121%2F1227261743\" title=\"\u7f60 - \u5730\u7344\u306e\u30cd\u30b3\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2008-11-21 19:02:23","description":"Struct \u30b3\u30fc\u30c9\u307f\u3066\u307f\u305f\u3002 let anekos = { set meow (value) 'gyahahaha' }; liberator.log(anekos.meow = 'neko'); // => gyahahaha \u7f60\u3063\u307d\u3044\u3002 setter \u3082\u307e\u3063\u3068\u3046\u306a\u5024\u3092\u8fd4\u3057\u3066\u304a\u3051\u3070\u3044\u3044\u3068\u601d\u3046\u3088!!Ruby \u306e\u5834\u5408\u306f\u3001\u53f3\u8fba\u3092\u8fd4\u3059\u306e\u3067\u305d\u3046\u3044\u3046\u306e\u306b\u306a\u308c\u3066\u308b\u3068\u3084\u3089\u304b\u3057\u305d\u3046\u3060\u3002 class ANekoS def meow= (value) \"gyahahaha\" end end anekos = ANekoS.new p(anekos.meow = 'neko') # => neko \u30d1\u30c3\u30c1\u306f\u3053\u3061\u3089\u2026","blog_url":"https://anekos.hatenablog.com/","author_name":"nokturnalmortum","version":"1.0","provider_url":"https://hatena.blog","height":"190"}