Created
September 2, 2010 18:32
-
-
Save JoshMcKin/562685 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
module Foo | |
def self.demo | |
puts "Module Demo" | |
end | |
end | |
class Bar | |
include Foo | |
def self.demo | |
puts "Class Demo" | |
end | |
end | |
puts Bar.demo # desired results => "Module Demo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment