Created
October 13, 2009 03:10
-
-
Save leomayleomay/208941 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
class Foo | |
def foo | |
h1 # this is allowed | |
end | |
def self.bar | |
h1 # this is not allowed | |
end | |
private | |
def h1 | |
puts 'this is a helper method' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment