{"description":"\u4f5c\u6210\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u6570\u306e\u5236\u9650 \u30dd\u30a4\u30f3\u30c8 \u30d5\u30a1\u30af\u30c8\u30ea\u30e1\u30bd\u30c3\u30c9\u306eprivate\u5316 \u30b3\u30d4\u30fc\u30e1\u30bd\u30c3\u30c9\u306eprivate\u5316 \u2192\u30b3\u30d4\u30fc\u3059\u3089\u7981\u6b62 const_set\u306b\u3088\u308b\u5b9a\u6570\u4f5c\u6210 class Season NAMES = %w{Spring Summer Autmn Winter} INSTANCES = [] def initialize(n) @n = n end NAMES.each_with_index do |name, i| instance = new(i) INSTANCES[i] = instance const_set(name, instance) end private_class_met\u2026","url":"https://sekai.hateblo.jp/entry/2013/10/13/142601","blog_title":"\u305b\u304b\u3044\u3084  ","title":"\u3010Ruby\u3011\u4f5c\u6210\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u6570\u306e\u5236\u9650\u3001\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u306e\u72ec\u81ea\u5b9f\u88c5","author_name":"sekaiya","blog_url":"https://sekai.hateblo.jp/","published":"2013-10-13 14:26:01","height":"190","version":"1.0","author_url":"https://blog.hatena.ne.jp/sekaiya/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsekai.hateblo.jp%2Fentry%2F2013%2F10%2F13%2F142601\" title=\"\u3010Ruby\u3011\u4f5c\u6210\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u6570\u306e\u5236\u9650\u3001\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u306e\u72ec\u81ea\u5b9f\u88c5 - \u305b\u304b\u3044\u3084  \" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","type":"rich","categories":[]}