79818447

Date: 2025-11-13 04:28:36
Score: 0.5
Natty:
Report link

Even more succinct one-liner that works when dir_path is a string:

Pathname.new(dir_path).each_child(&:unlink)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Jonathan