def split_assignment_array_to_hash(arr)
      hash = {}
      arr.each do |assignment|
        k, v = assignment.split('=', 2).map(&:strip)
        hash[k] = v
      end

      hash
    end
def split_assignment_array_to_hash(arr)
      hash = {}
      arr.each do |assignment|
        k, v = assignment.split('=', 2).map(&:strip)
        hash[k] = v
      end

      hash
    end
split ['a=1', 'b=2'] => { 'a' => '1', 'b' => '2' }