Ruby application that will return a string of words to a user input in title case format.
- Clone application from github repository: https://github.com/langlk/title_case.git
- From this repository run title_case.rb
- Does nothing to non-alphabetical characters
- Example input: it was 9 of the worst #$(!&% of times
- Example output: it was 9 of the worst #$(!&% of times
- Capitalize first letter of a string
- Example input: it was the worst of times
- Example output: It was the worst of times
- Lowercases letters in string besides the first letter.
- Example input: IT WAS THE WORST OF TIMES
- Example output: It was the worst of times
- Capitalize first letter of each word in a string
- Example input: it was the worst of times
- Example output: It Was The Worst Of Times
- No changes made to the following words (except the first word in string): a, an, the, at, by, for, in, of, on, to, up, and, as, but, or, nor
- Example input: it was the worst of times
- Example output: It Was the Worst of Times
We are unaware of any bugs at this time.
If you run into any issues or have questions, ideas or concerns, or if you would like to contribute to the code, please contact: [email protected] or [email protected] .
This application was created using Ruby
Copyright (c) 2017 Kelsey Langlois and L. Devin MacKrell
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.