Skip to content

Instantly share code, notes, and snippets.

@swalberg
Created June 3, 2016 13:36
Show Gist options
  • Save swalberg/f954bd41e2aa3bdb4108b5a7c0ff4214 to your computer and use it in GitHub Desktop.
Save swalberg/f954bd41e2aa3bdb4108b5a7c0ff4214 to your computer and use it in GitHub Desktop.
result = if something
something_else # properly indented
else # lined up with the if
something_else_entirely
end # note we're still lined up
result = if something
something_else # I can only make this 1 or 3 chars indented
else # how the fuck do I line it up with the if?
something_else_entirely
end # oh how life sucks
@NathanGiesbrecht
Copy link

NathanGiesbrecht commented Jun 3, 2016

result =    if something # problem can be solved by using a tab instead of a space :)
                something_else
            else
                something_else_entirely
            end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment