implement a Ruby version of ls(1) satisfying the given tests