Created
January 19, 2015 18:53
-
-
Save themoxman/f20f638ddd1ff5b4b5e5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
16:41:30 davemox@Daves-MBP $ pry | |
[1] pry(main)> module Test | |
[1] pry(main)* def test | |
[1] pry(main)* puts "module Test" | |
[1] pry(main)* end | |
[1] pry(main)* end | |
=> :test | |
[2] pry(main)> class Testy | |
[2] pry(main)* prepend Test | |
[2] pry(main)* def test | |
[2] pry(main)* puts "class Testy" | |
[2] pry(main)* end | |
[2] pry(main)* end | |
=> :test | |
[3] pry(main)> Testy.new.test | |
module Test | |
=> nil | |
[4] pry(main)> class Testerson | |
[4] pry(main)* include Test | |
[4] pry(main)* def test | |
[4] pry(main)* puts "class Testerson" | |
[4] pry(main)* end | |
[4] pry(main)* end | |
=> :test | |
[5] pry(main)> Testerson.new.test | |
class Testerson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment