{"categories":["Ruby"],"published":"2015-07-05 00:00:00","blog_url":"https://secret-garden.hatenablog.com/","url":"https://secret-garden.hatenablog.com/entry/2015/07/05/000000","blog_title":"Secret Garden(Instrumental)","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"Ruby \u3067\u306f + \u3084 -\u3001&\u3001| \u3068\u3044\u3063\u305f\u4e8c\u9805\u6f14\u7b97\u5b50\u306a\u3069\u306f\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u306b\u306a\u308b\u3002 \u4f8b\u3048\u3070\u3001 a + b \u3068\u3044\u3046\u5f0f\u306f a.+(b) \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u306e\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30b7\u30e5\u30ac\u30fc\u306b\u306a\u308b\u3002 \u307e\u305f\u3001\u3053\u308c\u3089\u306e\u6f14\u7b97\u5b50(\u30e1\u30bd\u30c3\u30c9)\u306f\u30e6\u30fc\u30b6\u5074\u3067\u518d\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u4efb\u610f\u306e\u30af\u30e9\u30b9\u3067\u6f14\u7b97\u5b50\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 class X def initialize value = 0 @value = value end # \u518d\u5b9a\u7fa9\u3057\u305f\u3044\u6f14\u7b97\u5b50\u3092\u30e1\u30bd\u30c3\u30c9\u540d\u306b\u3059\u308b def + value @value + value end # \u6bd4\u8f03\u6f14\u7b97\u5b50\u3082\u5b9a\u7fa9\u3067\u304d\u308b def == value @value == value \u2026","title":"Ruby \u306e\u6f14\u7b97\u5b50\u306f\u30e1\u30bd\u30c3\u30c9","image_url":null,"width":"100%","author_url":"https://blog.hatena.ne.jp/osyo-manga/","version":"1.0","type":"rich","author_name":"osyo-manga","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F07%2F05%2F000000\" title=\"Ruby \u306e\u6f14\u7b97\u5b50\u306f\u30e1\u30bd\u30c3\u30c9 - 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"}