その1
メソッドを変数で動的に呼び出す
.send(メソッド名のシンボル)
symbol = :method1
instance.send symbol
symbol = :method2
instance.send symbol
重い処理?
Go to list of users who liked
More than 5 years have passed since last update.
その1
メソッドを変数で動的に呼び出す
.send(メソッド名のシンボル)
symbol = :method1
instance.send symbol
symbol = :method2
instance.send symbol
重い処理?
Register as a new user and use Qiita more conveniently
Go to list of users who liked