Skip to content

Instantly share code, notes, and snippets.

Created October 28, 2012 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/20cb65dd4c7a3a18930c to your computer and use it in GitHub Desktop.
Save anonymous/20cb65dd4c7a3a18930c to your computer and use it in GitHub Desktop.
(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