https://github.com/serv/unsorted
A simple gem that gives you an unsorted numeric array
https://github.com/serv/unsorted
Last synced: about 2 months ago
JSON representation
A simple gem that gives you an unsorted numeric array
- Host: GitHub
- URL: https://github.com/serv/unsorted
- Owner: serv
- License: mit
- Created: 2013-08-10T21:19:21.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-11T08:54:40.000Z (almost 13 years ago)
- Last Synced: 2026-05-13T03:06:14.471Z (about 2 months ago)
- Language: Ruby
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Unsorted
[](https://codeclimate.com/github/serv/unsorted)
A simple gem that gives you an unsorted numeric array
## Installation
Add this line to your application's Gemfile:
gem 'unsorted'
And then execute:
$ bundle
Or install it yourself as:
$ gem install unsorted
## Usage
#### Testing the gem out in IRB
`irb`
`require 'rubygems' # => true`
`require 'unsorted' # => true`
You are ready to use Unsorted gem in IRB
#### Get an unsorted array of a given size
`Unsorted.get(10) # => [10, 7, 6, 4, 5, 9, 1, 3, 2, 8]`
The lowest number in the unsorted array is 1. The highest number in the unsorted array is the size.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request