Y
Hacker News
new
|
ask
|
show
|
jobs
by
voraciousdev
1283 days ago
Probably worth mentioning that each of those code snippets links out to a core sample in the ruby/ruby repository. There is a source link directly above the code you posted.
https://github.com/ruby/ruby/blob/ruby_3_1/sample/dir.rb