Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Last active November 23, 2016 16:09
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 paulcsmith/7f294390d2c40969b12c9ff791df8e8e to your computer and use it in GitHub Desktop.
Save paulcsmith/7f294390d2c40969b12c9ff791df8e8e to your computer and use it in GitHub Desktop.
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