Class: WhoAmI::Function::Ls
- Inherits:
-
Object
- Object
- WhoAmI::Function::Ls
- 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.(path) Dir[glob].select { |path| File.file?(path) } end |