-
-
Save anonymous/20cb65dd4c7a3a18930c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(testmodule.rb) | |
module Testmodule | |
def sayhello | |
puts "hello!" | |
end | |
end | |
(test.rb) | |
require 'testmodule.rb' | |
class Speaker | |
include Testmodule | |
end | |
(error) | |
test.rb:1:in `require': no such file to load -- Testmodule.rb (LoadError) | |
from test.rb:1:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment