{"published":"2006-01-27 00:00:12","description":"Ruby\u306esuper\u306f\u5143\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u304c\u3001\u62ec\u5f27\u3068\u5f15\u6570\u304c\u306a\u3044\u3068\u304d\u306b\u306f\u5143\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u304c\u305d\u306e\u307e\u307e\u6e21\u3055\u308c\u307e\u3059\u3002 class Parent def rubyco(x = 123, y = 456) print \"Parent: rubyco(#{x}, #{y})\\n\" end end class Child < Parent def rubyco(x, y) if x == 0 super # \u5143\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u304c\u305d\u306e\u307e\u307e elsif x == 1 super() # \u5f15\u6570\u7121\u3057\u3067 else super(100) # x\u306b\u3060\u3051100\u304c\u4ee3\u5165 end end end r = Child.new r.\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubyco.hatenadiary.org%2Fentry%2F20060127%2Fsuper\" title=\"super - rubyco\uff08\u308b\u3073\u3053\uff09\u306e\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>","title":"super","provider_name":"Hatena Blog","type":"rich","categories":[],"author_url":"https://blog.hatena.ne.jp/rubyco/","version":"1.0","url":"https://rubyco.hatenadiary.org/entry/20060127/super","width":"100%","provider_url":"https://hatena.blog","author_name":"rubyco","height":"190","blog_url":"https://rubyco.hatenadiary.org/","image_url":null,"blog_title":"rubyco\uff08\u308b\u3073\u3053\uff09\u306e\u65e5\u8a18"}