22 September 2020
This is project for Epicodus to practice using Ruby hashes and classes. The program takes in a number and returns that number into written words.
Spec | Behavior | Input | Output |
---|---|---|---|
1 | Program takes a number and turns it into a string. | 1 | "1" |
2 | Program splits string into an array. | 1 | [1] |
3 | Program turns numbers 0-9 into words. | 1 | "one" |
4 | Program turns numbers 10-19 into words. | 11 | "eleven" |
5 | Program turns numbers 20-29 into words. | 21 | "twenty one" |
6 | Program turns numbers 20 - 99 into words. | 99 | "ninety nine" |
7 | Program turns numbers 100 - 999 into words. | 101 | "one hundrend one" |
- Clone this project using the 'git clone' command in terminal/command line.
- Navigate to the cloned folder and run 'bundle' in your command line.
- Open the cloned repo in a text editor of your choice.
- To run tests: While in the root directory of the project, run 'rspec' in your command line.
There are no known bugs at this time.
- Ruby
- Gems: rspec, pry, rack
Copyright (c) 2020 {Vanessa Stewart, Brycen Bartolome, Awesome Sauce Enterprises}
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.