Skip to content

Instantly share code, notes, and snippets.

@mehdi-farsi
Last active August 26, 2018 20:19
Show Gist options
  • Save mehdi-farsi/c3bc443acea6582c6d2440fd8367be5e to your computer and use it in GitHub Desktop.
Save mehdi-farsi/c3bc443acea6582c6d2440fd8367be5e to your computer and use it in GitHub Desktop.
module A
autoload(:B, './b.rb')
p autoload?(:B)
B
p autoload?(:B)
end
module B
puts 'The module B is loading!'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment