Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > what is keyboard equivalent?

Reply
Thread Tools

what is keyboard equivalent?

 
 
Jim S.
Guest
Posts: n/a
 
      04-26-2011
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? How do I type it
in?

If I copy-paste the code as it is, I get an error message--Invalid char
`\342' in expression

thanks!

Attachments:
http://www.ruby-forum.com/attachment...-in-aviary.png


--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Gunther Diemant
Guest
Posts: n/a
 
      04-26-2011
[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.

2011/4/26 Jim S. <>

> 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? How do I type it
> in?
>
> If I copy-paste the code as it is, I get an error message--Invalid char
> `\342' in expression
>
> thanks!
>
> Attachments:
> http://www.ruby-forum.com/attachment...-in-aviary.png
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


 
Reply With Quote
 
 
 
 
spiralofhope
Guest
Posts: n/a
 
      04-26-2011
On Tue, 26 Apr 2011 19:05:21 +0900
"Jim S." <> wrote:

> 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.


--
http://spiralofhope.com


 
Reply With Quote
 
Stu
Guest
Posts: n/a
 
      04-26-2011
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:

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

=> "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.

~

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Optimus Keyboard (A First Look) @ CyberwizardPit Silverstrand Front Page News 3 07-21-2005 06:03 AM
SunbeamTech LED Keyboard and Mouse @ InsaneTek Silverstrand Front Page News 12 07-17-2005 02:25 AM
How-To: Orbital Eclipse LCD Keyboard Mod Silverstrand Front Page News 4 07-11-2005 07:58 AM
Review: BTC USB Multimedia Keyboard (9001AH) Silverstrand Reviews & How-To's 0 06-20-2005 02:37 AM
Keyboard error or no keyboard present??? Bud Light Computer Support 2 01-22-2005 04:00 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57