diff options
author | Thomas R. Koll <tomk32@tomk32.de> | 2023-02-15 04:41:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 12:41:53 +0900 |
commit | f03dd4ee778cbed7ea9510385b9bbdbdcf6d485b (patch) | |
tree | 41e0dd4faf4ebcb326755cd406d94388a2049ab9 /sample/weakref.rb | |
parent | 3376eca80a9e23c295a4fe5fb9049c1ad27bb562 (diff) | |
download | ruby-f03dd4ee778cbed7ea9510385b9bbdbdcf6d485b.tar.gz |
Refactor dir.rb sample (#6977) [ci skip]
* Refactor dir.rb sample
The original (1998) sample with a for-loop and use of case/when isn't what we'd write nowadays
* [DOC] Update sample/dir.rb [ci skip]
Do not leave a `Dir` opened.
* [DOC] Update sample/dir.rb [ci skip]
Fix ArgumentError.
---------
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Diffstat (limited to 'sample/weakref.rb')
0 files changed, 0 insertions, 0 deletions