Created
November 30, 2012 15:19
-
-
Save superacidjax/4176363 to your computer and use it in GitHub Desktop.
Bad Ruby Indention
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ugly_method #four space tab-based indention | |
if current_coder is_not_amateur? | |
nice_method #see nice_method below | |
else | |
20.times.do | |
puts 'Can you please indent your code properly?' | |
end | |
end | |
end | |
def nice_method #two spaces indention | |
if current_coder is_pro? | |
do_it_like_this | |
else | |
ugly_method | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment