An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          



DevelopersToolbox logo




Github Build Status


License


Created




Release


Released


Commits since release















## 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. |