Skip to content

Instantly share code, notes, and snippets.

@matstc
Last active August 29, 2015 14:07
Show Gist options
  • Save matstc/381a4521b2e5c9659813 to your computer and use it in GitHub Desktop.
Save matstc/381a4521b2e5c9659813 to your computer and use it in GitHub Desktop.
Example of late branching
def greet user
"Hello, %s!" % if user.admin?
"sir"
else
"you"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment