Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3506 > unrolled thread

what is keyboard equivalent?

Started by"Jim S." <jimsyyap@gmail.com>
First post2011-04-26 05:05 -0500
Last post2011-04-26 16:52 -0500
Articles 4 — 4 participants

Back to article view | Back to comp.lang.ruby


Contents

  what is keyboard equivalent? "Jim S." <jimsyyap@gmail.com> - 2011-04-26 05:05 -0500
    Re: what is keyboard equivalent? Gunther Diemant <g.diemant@gmx.net> - 2011-04-26 05:20 -0500
    Re: what is keyboard equivalent? spiralofhope <spiralofhope_rubyml@lavabit.com> - 2011-04-26 06:11 -0500
      Re: what is keyboard equivalent? Stu <stu@rubyprogrammer.net> - 2011-04-26 16:52 -0500

#3506 — what is keyboard equivalent?

From"Jim S." <jimsyyap@gmail.com>
Date2011-04-26 05:05 -0500
Subjectwhat is keyboard equivalent?
Message-ID<f5f612c5b515dfbf87c52dcbbef26f6a@ruby-forum.com>
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/6141/made-in-aviary.png


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

[toc] | [next] | [standalone]


#3510

FromGunther Diemant <g.diemant@gmx.net>
Date2011-04-26 05:20 -0500
Message-ID<BANLkTinrbBL+9XK=1gg6=-Lw27hFvDUy-Q@mail.gmail.com>
In reply to#3506
[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. <jimsyyap@gmail.com>

> 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/6141/made-in-aviary.png
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
>

[toc] | [prev] | [next] | [standalone]


#3511

Fromspiralofhope <spiralofhope_rubyml@lavabit.com>
Date2011-04-26 06:11 -0500
Message-ID<20110426041019.60eb6111@user-GA-MA785GM-US2H>
In reply to#3506
On Tue, 26 Apr 2011 19:05:21 +0900
"Jim S." <jimsyyap@gmail.com> 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

[toc] | [prev] | [next] | [standalone]


#3534

FromStu <stu@rubyprogrammer.net>
Date2011-04-26 16:52 -0500
Message-ID<BANLkTimy-AoruXZb-t4b12uTa+D4o70waA@mail.gmail.com>
In reply to#3511
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.

~

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.ruby


csiph-web