Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.

curpeng/phone_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoneConverter

.covert(number)

Converts 10 digit phone number to all possible words or combination of words from the provided dictionary.

Example:

PhoneConverter.convert(6686787825)
#=> [["noun", "struck"], ["onto", "struck"], ["motor", "usual"], ["nouns", "truck"], ["nouns", "usual"], "motortruck"]

How to run:

irb -r ./lib/phone_converter.rb
PhoneConverter.convert(6686787825)

Run tests:

bundle exec rspec spec

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages