Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created July 3, 2009 22:51
Show Gist options
  • Save patmaddox/140360 to your computer and use it in GitHub Desktop.
Save patmaddox/140360 to your computer and use it in GitHub Desktop.
def funky_foo(shakalaka, &block)
if some_condition
# lines of code
# and more lines of code
# ...
# 50 lines of code
else
puts "chicken dinner"
end
end
def funky_foo(shakalaka, &block)
unless some_condition
puts "chicken dinner"
return
end
# lines of code
# and more lines of code
# ...
# 50 lines of code
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment