Skip to content

Instantly share code, notes, and snippets.

@denysonique
Created July 20, 2011 04:52
Show Gist options
  • Save denysonique/1094358 to your computer and use it in GitHub Desktop.
Save denysonique/1094358 to your computer and use it in GitHub Desktop.
#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