Skip to content

Instantly share code, notes, and snippets.

@superacidjax
Created November 30, 2012 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superacidjax/4176363 to your computer and use it in GitHub Desktop.
Save superacidjax/4176363 to your computer and use it in GitHub Desktop.
Bad Ruby Indention
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