[Solved] Bug or feature? Weird indentation breaks ruby hashes declaration


You could add a \ to each line:

hash = 
  [ "bla" => :bla \
  , "bli" => :bli \
  , "blo" => :blo \
  ]
#=> [{"bla"=>:bla, "bli"=>:bli, "blo"=>:blo}]

2

solved Bug or feature? Weird indentation breaks ruby hashes declaration