Skip to content

Instantly share code, notes, and snippets.

@mehdi-farsi
Last active August 26, 2018 20:25
Show Gist options
  • Save mehdi-farsi/5a174ce0603283ee85872eeff2fd4f7f to your computer and use it in GitHub Desktop.
Save mehdi-farsi/5a174ce0603283ee85872eeff2fd4f7f to your computer and use it in GitHub Desktop.
module Car
autoload(:Engine, './engine.rb')
puts "The Engine module isn't yet loaded!"
Engine
puts "The Engine module has been successfully loaded!"
end
module Engine
puts 'The Engine module is loading!'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment