-
-
Save paulcsmith/7f294390d2c40969b12c9ff791df8e8e to your computer and use it in GitHub Desktop.
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
something = SomeClass.new | |
.do_something | |
.do_something_else | |
# Is formatted to this | |
thing = SomeClass.new | |
.do_something | |
.do_something_else | |
# I prefer the first one because even if I change the classs or rename the variable | |
# The other lines don't change. Makes diffs a lot clearner and makes it easier to see what actually changed | |
# I also think it looks nicer :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment