Say i have this untainted code:
some_var = Hash.new
some_var[:name] = "blah"
some_var[:address] = "101 blahblah lane"
another = "Olly olly oxen free!"
What is the ruby way of making it pretty?
option 1: Leave it as is
option 2: Align related things
some_var = Hash.new
some_var[:name] = "blah"
some_var[:address] = "101 blahblah lane"
another = "Olly olly oxen free!"
option 3: Align all the things
some_var = Hash.new
some_var[:name] = "blah"
some_var[:address] = "101 blahblah lane"
another = "Olly olly oxen free!"
option 4: ?????
Thanks!!
Using Hashes as in your example I would do another version:
or with Ruby 1.9