what is keyboard equivalent?

G

Gunther Diemant

[Note: parts of this message were removed to make it a legal post.]

Don't type it in. This symbol represents a linebreak and isn't really part
of the code.
 
S

spiralofhope

In the attached image file (http://goo.gl/brVSa), the symbol in the
red circle with the blue arrow pointing to it--what is it?

Sometimes when a person wants to show their code to someone else, their
code is too wide to display properly. If the code is too wide, it must
be "broken off" and continued on the next line. That symbol indicates
this.

Sometimes it does not matter when some of the code is on a second line,
but sometimes it does.
 
S

Stu

This is for presentation purposes. If you need to deal with a
limitation of say a console you can use the continuation character \
to represent the same thing within your code.

Example:
=> "This is a really long string But it really is only one line to
ruby Though you see three lines in irb"

If you did the same thing without the continuation char it would auto
input \n in place of every carriage return.

~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top