module A

  def f

    puts "call A.f"

  end

end


module B

  def f

    puts "call B.f"

  end

end


class Main

  include A

  include B

end


puts Main::Hello

main = Main.new

main.f


모듈 2개 임포트하고

동일이름 메서드 호출시

나중에 불러온 모듈 메서드가 덮어 쓰여져서

호출되는거 보고 바로 루비 접음


루비레기 ㅅㄱ