class Rufo::DotFile

def parse(file_contents)

def parse(file_contents)
  file_contents.lines
               .map { |s| s.strip.split(/\s+/, 2) }
               .each_with_object({}) do |(name, value), acc|
    value ||= ""
    if value.start_with?(":")
      value = value[1..-1].to_sym
    elsif value == "true"
      value = true
    elsif value == "false"
      value = false
    elsif value.start_with?("[")
      value = value[1..-2].split(",")
    else
      $stderr.puts "Unknown config value=#{value.inspect} for #{name.inspect}"
      next
    end
    acc[name.to_sym] = value
  end
end