{"blog_url":"https://ha-tan.hatenadiary.org/","height":"190","description":"\u7b2c30\u56deRuby/Rails\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3057\u307e\u3057\u305f - \u30b5\u30a4\u30ed\u30b0\u3002Miyako\u3068\u304bRuby\u3068\u304b\u306a\u3093\u3068\u304b\uff0bMiyako ACCESS MAP\u3088\u308a\u3002 \u521d\u7d1a\u8005\u30ec\u30c3\u30b9\u30f3\u3067\u9006\u30dd\u30fc\u30e9\u30f3\u30c9\u96fb\u5353\u306e\u304a\u984c\u304c\u51fa\u3066\u3044\u305f\u3088\u3046\u306a\u306e\u3067\u3001\u50d5\u3082\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3084\u3063\u3071\u308a\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u304c\u9762\u5012\u3067\u3059\u2026 def rpn(expr) result = expr.inject([]) do |stack, e| case e when :+, :-, :*, :/ raise \"invalid expr.\" if stack.size < 2 o2 = stack.pop o1 = stack.pop raise \"divided by 0\u2026","published":"2008-09-22 10:58:21","categories":["Ruby"],"url":"https://ha-tan.hatenadiary.org/entry/20080922/1222048701","version":"1.0","blog_title":"\u8da3\u5473\u7684\u306b\u3063\u304d","author_name":"ha-tan","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20080922%2F1222048701\" title=\" \u9006\u30dd\u30fc\u30e9\u30f3\u30c9\u96fb\u5353\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002 - \u8da3\u5473\u7684\u306b\u3063\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","title":" \u9006\u30dd\u30fc\u30e9\u30f3\u30c9\u96fb\u5353\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002","provider_url":"https://hatena.blog","type":"rich","width":"100%","author_url":"https://blog.hatena.ne.jp/ha-tan/","image_url":null}