Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save vanderhoop/222f4eccf5840c36776b to your computer and use it in GitHub Desktop.

Select an option

Save vanderhoop/222f4eccf5840c36776b to your computer and use it in GitHub Desktop.

Ruby String Research and Experimentation

Manipulating strings is a common occurence for server side programming. All the text you see on Facebook and linked in has to be manipulated to appear a certain way. This exercise will give you a resource for learning more about strings.

Exercise Objectives

  • familiarize yourself with the format of the official Ruby Documentation
  • get comfortable interpolating dynamic values into strings

Directions

  1. Spend 15 minutes looking over and familiarizing yourself with the official Ruby String Documentation

  2. Enter into pry and try some of the methods you find in the documentation.

  • Example: "Kamari Aykes".split(" ")
  • Example: "PJ Hughes".length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment