Skip to content

Instantly share code, notes, and snippets.

View mikestone14's full-sized avatar

Mike Stone mikestone14

View GitHub Profile

Blocks Lab 1: Hashtag Overload

In this lab, we'll write a short program that will auto-hashtag our tweets for us. Put this line in a new Ruby file:

tweet = "We ate fifty cheeseburgers for lunch"

Your objective is to transform this tweet into the array ["#fifty", "#cheeseburgers", "#lunch"]. You'll need to do three things:

Blocks Lab 1: Hashtag Overload

In this lab, we'll write a short program that will auto-hashtag our tweets for us. Put this line in a new Ruby file:

tweet = "We ate fifty cheeseburgers for lunch"

Your objective is to transform this tweet into the array ["#fifty", "#cheeseburgers", "#lunch"]. You'll need to do three things: