Class: WhoAmI::Function::Ls

Inherits:
Object
  • Object
show all
Includes:
ProcParty
Defined in:
lib/who_am_i/function/ls.rb

Instance Method Summary collapse

Instance Method Details

#call(path) ⇒ Object



6
7
8
9
10
# File 'lib/who_am_i/function/ls.rb', line 6

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

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