{"categories":["Ruby"],"type":"rich","author_name":"osyo-manga","blog_url":"https://secret-garden.hatenablog.com/","blog_title":"Secret Garden(Instrumental)","published":"2018-01-23 14:29:36","url":"https://secret-garden.hatenablog.com/entry/2018/01/23/142936","provider_name":"Hatena Blog","description":"\u3068\u3001\u3044\u3046\u306e\u304c JavaScript \u754c\u9688\u3067\u6d41\u884c\u3063\u3066\u3044\u308b\u306e\u3067 Ruby \u3067\u3082\u3084\u3063\u3066\u307f\u305f == \u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b \u591a\u5206\u4e00\u756a\u7c21\u5358\u306a\u3084\u308a\u65b9\u3002 \u6bd4\u8f03\u6f14\u7b97\u5b50\u305d\u306e\u3082\u306e\u306e\u7d50\u679c\u3092\u5909\u3048\u307e\u3059\u3002 a = Object.new def a.== other true end p a == 1 && a == 2 && a == 3 # => true a \u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b Ruby \u3067\u306f\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u306e\u969b\u306b () \u3092\u7701\u7565\u3059\u308b\u4e8b\u304c\u51fa\u6765\u308b\u306e\u3067 a() \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u3092 a \u3068\u3060\u3051\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002 def a @a = (@a || 0) + 1 end p a == 1 && a == 2 && a\u2026","version":"1.0","image_url":null,"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2018%2F01%2F23%2F142936\" title=\"Ruby \u3067 (a ==1 &amp;&amp; a== 2 &amp;&amp; a==3) \u306e\u7d50\u679c\u3092\u771f\u306b\u3059\u308b - 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>","height":"190","author_url":"https://blog.hatena.ne.jp/osyo-manga/","title":"Ruby \u3067 (a ==1 && a== 2 && a==3) \u306e\u7d50\u679c\u3092\u771f\u306b\u3059\u308b","provider_url":"https://hatena.blog"}