Created
January 7, 2016 14:03
-
-
Save kaochenlong/0f5b91cd730fadec070b to your computer and use it in GitHub Desktop.
Module test
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 Cc | |
def hello | |
world | |
end | |
def world | |
puts "world" | |
end | |
end | |
class Test | |
include Cc | |
end | |
t = Test.new | |
t.hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment