[#4766] Wiki — "Glen Stampoultzis" <trinexus@...>

21 messages 2000/09/04
[#4768] RE: Wiki — "NAKAMURA, Hiroshi" <nahi@...> 2000/09/04

Hi, Glen,

[#4783] Re: Wiki — Masatoshi SEKI <m_seki@...> 2000/09/04

[#4785] Re: Wiki — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/09/05

Howdy,

[#4883] Re-binding a block — Dave Thomas <Dave@...>

16 messages 2000/09/12

[#4930] Perl 6 rumblings -- RFC 225 (v1) Data: Superpositions — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/09/15

[#4936] Ruby Book Eng. translation editor's questions — Jon Babcock <jon@...>

20 messages 2000/09/16

[#5045] Proposal: Add constants to Math — Robert Feldt <feldt@...>

15 messages 2000/09/21

[#5077] Crazy idea? infix method calls — hal9000@...

This is a generalization of the "in" operator idea which I

17 messages 2000/09/22

[#5157] Compile Problem with 1.6.1 — Scott Billings <aerogems@...>

When I try to compile Ruby 1.6.1, I get the following error:

15 messages 2000/09/27

[ruby-talk:4947] Re: Ruby Book Eng. translation editor's questions

From: Jon Babcock <jon@...>
Date: 2000-09-16 19:48:31 UTC
List: ruby-talk #4947
Thanks very much for the input.

Does this capture your suggestions correctly? Or am I still missing
something?

Ruby Book, Ch2, 2.14

%Q!Hello "World"\n!     # "" の別形式(" をエスケープする必要がない )

%|Hello "World"\n|      # “Q”は省略できる(区切り文字は任意の記号)

%q{Hello World}         # '' の別形式(対応する括弧が区切りになる)

%x(date)                # `` の別形式

%w(foo bar baz)         # 配列 ["foo", "bar", "baz"]


[[ %Q!Hello "World"\n!	# an alternative to "..." (no need to escape
the quote marks)

%|Hello "World"\n	# the "Q" can be omitted (an arbitrary character can
be used for seperation)

%q{Hello World}		# an alternative to '...' (ends at the matching })

%x(date)		# an alternative to `...` 

%w(foo bar baz)		# array [foo, bar, baz] ]]


Then the table below the above would be:


文字列表現が%で始まる時は次の1文字でその文字列のタイプが決まります。

[[When a string expression begins with % the type of expression is
determined by the next character.]]


次の1文字			文字列のタイプ

Qまたは省略			""

q				''

x				``

r				正規表現

w				文字列のリスト(単語で分割)



[[Next Character		Type of String

Q, or it may be omitted	       Double quotes "..."

q			       Single quotes '...'

x			       Back ticks `...`

r			       Regular Expression

w			       Word List (parsed by words)]]


Does this work okay? Thanks again.

Jon

-- 
Jon Babcock <jon@kanji.com>

In This Thread