-
-
Save sporkmonger/55086 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# BAD: | |
foo.bar = 25 | |
foo.biz = 'Hello World' | |
foo.bazzle = 42 | |
# GOOD: | |
foo.bar = 25 | |
foo.biz = 'Hello World' | |
foo.bazzle = 42 | |
# BAD: | |
Foo.something :bar, :baz => 'bling', | |
:bizzle => 'boink', | |
:bowang => '...' | |
# GOOD: | |
Foo.something :bar, | |
:baz => 'bling', | |
:bizzle => 'boink', | |
:bowang => '...' | |
# What's the underlying principle at work here? | |
# Bill said: | |
# => In multi-line statements, | |
# use a maximum of one tab-width of whitespace, | |
# at the beginning of the line only, | |
# to left-align lines after the first. | |
# Ryan said: | |
# Ahh, good. But _why_? | |
# Bob said: | |
# Hold on, what about: | |
if Foo.something :bar, | |
:baz => 'bling', | |
:bizzle => 'boink', | |
:bowang => '...' | |
Foo.something_else | |
end | |
# This indentation looks wrong to me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment