Created
December 11, 2012 15:03
-
-
Save shanemcd/4259171 to your computer and use it in GitHub Desktop.
modules
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
module Foobar | |
def self.foo | |
puts 'foo' | |
end | |
end | |
module Foobar | |
def self.bar | |
puts 'bar' | |
end | |
end | |
class Test | |
include Foobar | |
Foobar.foo | |
Foobar.bar | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment