Enhanced `ls` clone in Ruby