LoginSignup
0
0

More than 3 years have passed since last update.

【Ruby】メソッドをオーバーライドした時のsuperの引数の有無について

Last updated at Posted at 2019-10-10

引数をそのまま渡したい → super
引数を指定して渡したい → super(name)
引数を渡したくない → super()

Ruby 2.6.0 リファレンスマニュアル > メソッド呼び出し(super・ブロック付き・yield) - super

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0