Skip to content

Instantly share code, notes, and snippets.

View SkyPoint's full-sized avatar

Jophiel Silvestrone SkyPoint

View GitHub Profile
@rosiehoyem
rosiehoyem / Tweet Shortener
Last active December 24, 2015 02:09
Homework, Day 4
=begin
Write a method that will take a tweet, search it for
words that you can substitute, and return a substituted string
tweet. For instance, the tweet "Hello to you, I'm at home"
would become "Hi 2 u, I'm @ home". The client has provided
the following acceptable substitutes. => e
Objectives
1. Write a method to shorten a string based on the allowed substitutes