Created
January 7, 2013 15:26
-
-
Save sw17ch/4475815 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
[3] pry(main)> module Foo | |
[3] pry(main)* def self.bar | |
[3] pry(main)* puts "I AM BAR" | |
[3] pry(main)* end | |
[3] pry(main)* end | |
=> nil | |
[4] pry(main)> Foo.method(:bar) | |
=> #<Method: Foo.bar> | |
[5] pry(main)> Foo.method(:bar).call | |
I AM BAR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment