Skip to content

Instantly share code, notes, and snippets.

@alindeman
Created January 19, 2011 17:26
Show Gist options
  • Select an option

  • Save alindeman/786490 to your computer and use it in GitHub Desktop.

Select an option

Save alindeman/786490 to your computer and use it in GitHub Desktop.
# Set these appropriately
monkey_a = 1
monkey_b = 1
problem = if monkey_a == monkey_b
"problem"
else
"not a problem"
end
puts problem
@alindeman
Copy link
Author

This could be more succinct. I'm just demonstrating that an if block returns something!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment