Skip to content

Instantly share code, notes, and snippets.

@littleidea
Created April 6, 2010 07:16
Show Gist options
  • Save littleidea/357313 to your computer and use it in GitHub Desktop.
Save littleidea/357313 to your computer and use it in GitHub Desktop.
case
when a.include?('2')
puts 'something'
when a.include?('b')
puts 'something else'
else
puts 'whatever'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment