require "insensitive_load/collector"

module InsensitiveLoad
  class List
    class << self
      def items(*args, **options)
        allocate.items(*args, **options)
      end

      def dirs(*args, **options)
        allocate.dirs(*args, **options)
      end

      def files(*args, **options)
        allocate.files(*args, **options)
      end
    end

    # - - - - - - - - - - - - - - - - - -
    # list

    def items(
        *args,
        absolute_path: nil,
        **options)
      collector = Collector.new(*args, **options)
      collector.items(absolute_path)
    end

    def dirs(*args)
      collector = Collector.new(*args)
      collector.dirs
    end

    def files(*args)
      collector = Collector.new(*args)
      collector.files
    end
  end
end
require "insensitive_load/collector"

module InsensitiveLoad
  class List
    class << self
      def items(*args, **options)
        allocate.items(*args, **options)
      end

      def dirs(*args, **options)
        allocate.dirs(*args, **options)
      end

      def files(*args, **options)
        allocate.files(*args, **options)
      end
    end

    # - - - - - - - - - - - - - - - - - -
    # list

    def items(
        path_src,
        absolute_path: nil,
        **init_options)
      collector = Collector.new(path_src, **init_options)
      collector.items(absolute_path)
    end

    def dirs(*args)
      collector = Collector.new(*args)
      collector.dirs
    end

    def files(*args)
      collector = Collector.new(*args)
      collector.files
    end
  end
end
Modify argument names a little
Modify argument names a little

InsensitiveLoad::List
----

- Change argument names in .items.
  - From '*args' to 'path_src'.
  - From '**options' to '**init_options'.
