https://github.com/developerstoolbox/ruby-snippets
A collection of ruby snippets
https://github.com/developerstoolbox/ruby-snippets
Last synced: 12 months ago
JSON representation
A collection of ruby snippets
- Host: GitHub
- URL: https://github.com/developerstoolbox/ruby-snippets
- Owner: DevelopersToolbox
- License: mit
- Created: 2021-06-12T10:46:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T05:00:49.000Z (over 1 year ago)
- Last Synced: 2025-03-24T05:31:37.075Z (over 1 year ago)
- Language: Ruby
- Size: 134 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
## Overview
This is a collection of useful(ish) Ruby snippets. The snippets are all simple self-contained pieces of code (a class or subroutine), but non of them are large enough to require having a repository in their own right.
## Ruby Snippets
| Name | Description |
| --------------------------------------------------------- | ---------------------------------------------------- |
| [keep-max.rb](src/keep-max/keep-max.rb) | Pass in two numbers and keep the larger of the two. |
| [keep-min.rb](src/keep-min/keep-min.rb) | Pass in two numbers and keep the smaller of the two. |
| [seconds-to-hms.rb](src/seconds-to-hms/seconds-to-hms.rb) | Convert seconds to hours, minute and seconds. |