Created
July 20, 2011 04:52
-
-
Save denysonique/1094358 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
#instead of | |
def foo | |
end | |
def foo.bar | |
'foobar' | |
end | |
# Is it possible to do the same in within the method itself? e.g. | |
def foo | |
def bar | |
'foobar' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment