# File lib/core/facets/file/read_list.rb, line 12
  def self.read_list(filepath, options={})
    chomp = options[:chomp]
    omit  = case options[:omit]
            when Regexp
              omit
            when nil
              /^\s*\#/
            else
              /^\s*#{Regexp.escape(omit)}/
            end

    list = []
    readlines(filepath).each do |line|
      line = line.strip.chomp(chomp)
      next if line.empty?
      next if omit === line
      list << line
    end
    list
  end