Im wondering if there is a better way of converting a string to a Hash.
My String will always look exactly the same regarding the structure. 
Here is an example:

```
string = "range:12\ntype:default\n"

@settings = Hash[
  *string.downcase
  .split("\n")
  .map{|s| [s.split(":")[0].to_sym, s.split(":")[1]]}
  .flatten
]

p @settings
# => {:range=>"12", :type=>"default"}

```

This does what it should do and I have no problems with this.
But it is extremely unreadable and I hope that there are some refactoring options for my code.