Sha256: b270adbcc3184885a1e95bc35a3bbb2ba3ad018e5e1333f7139963761e4f675c

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 Bytes

Contents

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.4.1.a lib/skippy/helpers/file.rb
skippy-0.4.0.a lib/skippy/helpers/file.rb
skippy-0.3.0.a lib/skippy/helpers/file.rb