モジュールの優先順位 # モジュール1の定義 module Sample1 def test puts "Sample1!!" end end # モジュール2の定義 module Sample2 def test puts "Sample2!!" end end class Clazz1 include Sample1 include Sample2 end Clazz1.new.test => Sample2!! # …
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。