Sha256: 9bddc1795c24073ca510ad0edbf24c70bb08585702f19182c38769121d4cbf70

Contents?: true

Size: 293 Bytes

Versions: 3

Compression:

Stored size: 293 Bytes

Contents

# frozen_string_literal: true

module Skippy::Helpers
  module File

    extend self

    # @param [Pathname]
    # @return [Array<Pathname>]
    def directories(pathname)
      return [] unless pathname.exist?

      pathname.children.select(&:directory?)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
skippy-0.5.2.a lib/skippy/helpers/file.rb
skippy-0.5.1.a lib/skippy/helpers/file.rb
skippy-0.5.0.a lib/skippy/helpers/file.rb