require 'pathname'

module Listen
  module Adapter
    class Config
      attr_reader :directories
      attr_reader :silencer
      attr_reader :queue
      attr_reader :adapter_options

      def initialize(directories, queue, silencer, adapter_options)
        # TODO: fix (flatten, array, compact?)
        @directories = directories.map do |directory|
          Pathname.new(directory.to_s).realpath
        end

        @silencer = silencer
        @queue = queue
        @adapter_options = adapter_options
      end
    end
  end
end
