{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20060225%2F1140830987\" title=\"case\u306b\u3088\u308b\u5834\u5408\u308f\u3051 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://mzp.hatenadiary.org/","version":"1.0","height":"190","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/mzp/","width":"100%","url":"https://mzp.hatenadiary.org/entry/20060225/1140830987","type":"rich","title":"case\u306b\u3088\u308b\u5834\u5408\u308f\u3051","image_url":"https://cdn-ak.d.st-hatena.com/diary/mzp/2006-02-25.jpg","published":"2006-02-25 10:29:47","provider_url":"https://hatena.blog","description":"\u3053\u3093\u306a\u30b3\u30fc\u30c9\u304c\u3042\u3063\u305f\u3068\u3059\u308b def foo case @param['mode'] when 'error' ...... when 'input' ...... else ..... end end\u51e6\u7406\u304c\u5897\u3048\u308b\u3068\u95a2\u6570\u304c\u5927\u304d\u304f\u306a\u308b\u306e\u3067\u3001\u3042\u307e\u308a\u3046\u308c\u3057\u304f\u306a\u3044\u3002\u3042\u3068\u3001\u6d3e\u751f\u3057\u305f\u30af\u30e9\u30b9\u3067\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b\u306e\u304c\u7d50\u69cb\u3081\u3093\u3069\u3046\u306b\u306a\u308b\u3002\u305d\u3053\u3067\u3001Object#send\u3092\u4f7f\u3063\u3066\u3084\u308b\u3002 def foo if self.respond_to? \"on_#@param&#91;'mode'&#93;:\" then self.send \"on_#@param&#91;'mode'&#93;:\" else on_default \u2026","author_name":"mzp","provider_name":"Hatena Blog","categories":["Ruby"]}