Skip to content

Instantly share code, notes, and snippets.

@lesce
Created February 27, 2013 11:05
Show Gist options
  • Save lesce/5047146 to your computer and use it in GitHub Desktop.
Save lesce/5047146 to your computer and use it in GitHub Desktop.
def test
[0,1,2].each do |n|
x = "Da" if n == 2
end
x = "Nu" if x.nil?
return x
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment