Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Strings in Ruby!
You have completed Practice Strings in Ruby!
Preview
Let's practice some basic Ruby to make sure that everything you've learned so far sticks. We'll review single and double-quoted strings, as well as escape sequences.
To complete this practice, you'll need to use:
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[SOUND] Let's practice some basic
Ruby to make sure that every
0:01
thing you've learned so far sticks.
0:06
We'll review single quoted and
double quoted strings as well as escape
0:09
sequences, which let you include white
space in a double quoted string.
0:13
If you're not familiar with these topics,
0:17
check the teacher's notes attached to this
video for links where you can learn more.
0:18
We're going to ask you to
build a simple Ruby program.
0:23
This time, you're the teacher.
0:25
When your program is run,
0:27
it should output a brief tutorial
on using Ruby escape sequences.
0:28
I've attached a workspace to this video,
0:36
which includes a tutorial.rb starter
file with instructions as Ruby comments.
0:39
You should open the work space now.
0:44
If you have Ruby installed on your
computer, you can go to the file menu and
0:46
choose download work space, but
0:49
if you don't, feel free to run
tutorial.rb from the console.
0:51
I've linked to some videos
in the teacher's notes,
0:56
which you can refer to if you get stuck.
0:58
After you've written your program,
1:00
you can proceed to the next video where
you can compare my solution to yours.
1:01
Ready?
1:06
Get started on your program.
1:06
I'll show you my version
in the next video.
1:08
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up