Sha256: 77dd84298bf8b5f40834edba2541351930dd269b2a3a6b423d5f6b0fd3612115
Contents?: true
Size: 679 Bytes
Versions: 13
Compression:
Stored size: 679 Bytes
Contents
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) # Default to current directory if no directories are supplied directories = [Dir.pwd] if directories.to_a.empty? # 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
Version data entries
13 entries across 13 versions & 5 rubygems