-
-
Save Bill/54892 to your computer and use it in GitHub Desktop.
answer
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
# 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? | |
# => 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment