# animal.rb
module Animal
  def walk
    puts 'walk'
  end
end

# dog.rb
class Dog
  include Animal
end

# main.rb
require 'animal'
require 'dog'

dog = Dog.new
dog.walk