Sub-Strings
This method takes a word as the first argument and then an array of valid substrings (dictionary) as the second argument. It returns a hash listing each substring (case insensitive) that was found in the original string and how many times it was found.
Built With
- Ruby
Live Code
Getting Started
To get a local copy of the repository please run the following commands on your terminal:
$ git clone https://github.com/Georjane/Sub-Strings.git
$ cd Sub-Strings
Testing
Install Rspec
$ gem install rspec
To test the code, run rspec from root of the folder using terminal as follows
rspec
Rspec is used for the test.
Author
👤 Witah Ngu Geojane
- Github: @Georjane
- Twitter: @WittyJany
- Linkedin: witah
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Show your support
Give a ⭐️ if you like this project!
Acknowledgments
- Project originally taken from The Odin Project
- This project is part of Microverse Program