Sha256: 3120833f5eca088c934213fc572c13c66f856a3fee63cf5278e94138f57f6b8c

Contents?: true

Size: 211 Bytes

Versions: 6

Compression:

Stored size: 211 Bytes

Contents

module WhoAmI
  module Function
    class Ls
      include ProcParty

      def call(path)
        glob = File.expand_path(path)

        Dir[glob].select { |path| File.file?(path) }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
who_am_i-0.0.6 lib/who_am_i/function/ls.rb
who_am_i-0.0.5 lib/who_am_i/function/ls.rb
who_am_i-0.0.4 lib/who_am_i/function/ls.rb
who_am_i-0.0.3 lib/who_am_i/function/ls.rb
who_am_i-0.0.2 lib/who_am_i/function/ls.rb
who_am_i-0.0.1 lib/who_am_i/function/ls.rb