Sha256: b008f13230e0f53394663c91191bcdca29184abad3a1dbdf0d41fae05c2827cc
Contents?: true
Size: 671 Bytes
Versions: 55
Compression:
Stored size: 671 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
55 entries across 48 versions & 9 rubygems