Last active
July 8, 2021 18:24
-
-
Save JuzerShakir/8a5329d9d0ef49bf41a01bb390b230c5 to your computer and use it in GitHub Desktop.
Used in medium
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
require_relative '01.define_module' | |
include Test | |
class C_test | |
p self.ancestors # => [C_test, Object, Test, Kernel, BasicObject] | |
end | |
C_test.new.hello # => I'm an instance method. | |
C_test.hello # => I'm an instance method. | |
hello # => I'm an instance method. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment