def to_h

      p = HashParse.new
      t = HashTransform.new

      h_str = self.clone
      h_str.strip!
      t.apply(p.parse(self.strip))

    end
def to_h

      p = HashParse.new
      t = HashTransform.new

      h_str = self.clone
      h_str.strip!
      t.apply(p.parse(self.strip))

    end
Converts the string to a hash representation
 @return [Hash] Hash representation of the string
 @raise [Parslet::ParseFailed] If parsing of the string fails

 @example
  "{ :foo => 'bar'}".to_h
  => {:foo=>"bar"}