module Foo
  def say
    "Fooo!"
  end
end

module Bar
  def say
    "Bar!!!"
  end
end

class Person
  include Foo
  extend Bar
end

dog = Person.new
p dog.say

p Person.say

# => "Fooo!"
# => "Bar!!!"