Refactor dir.rb sample (#6977) [ci skip]
The original (1998) sample with a for-loop and use of case/when isn't what we'd write nowadays
Do not leave a Dir opened.
Dir
Fix ArgumentError.
Co-authored-by: Nobuyoshi Nakada [email protected]
Refactor dir.rb sample (#6977) [ci skip]
The original (1998) sample with a for-loop and use of case/when isn't what we'd write nowadays
Do not leave a
Dir
opened.Fix ArgumentError.
Co-authored-by: Nobuyoshi Nakada [email protected]