This post originated from an RSS feed registered with Ruby Buzz
by Vincent Foley.
Original Post: Nicest Ruby indentation I’ve seen
Feed Title: Uncentered Mind
Feed URL: https://gnuvince.wordpress.com/feed/?cat=2
Feed Description: I ramble, you call me names, we have fun!
Check out this little gem, notice how nicely indented it is:
The leading indenting for the first code line
The really far out @dropdown.addItem lines
The if/elsif/else which uses three different tab width (8 for the then clause, 4 for the elsif clause and none for the else clause)
Ain’t it nice? I’m sure this could cause an [...]