@@ -55,14 +55,14 @@ Ruby features:
55
55
56
56
* Simple syntax,
57
57
* Basic OO features (classes, methods, objects, and so on),
58
- * Special OO features (Mix-ins , singleton methods, renaming, ...),
58
+ * Special OO features (mixins , singleton methods, renaming, ...),
59
59
* Operator overloading,
60
60
* Exception handling,
61
61
* Iterators and closures,
62
62
* Garbage collection,
63
63
* Dynamic loading (depending on the architecture),
64
- * High transportability (runs on various Unices, Windows, DOS, OSX , OS/2,
65
- Amiga, and so on)
64
+ * High transportability (runs on various Unices, Windows, DOS, OS X , OS/2,
65
+ Amiga, and so on).
66
66
67
67
### Show me some Ruby code!
68
68
@@ -100,7 +100,7 @@ zoe: 7
100
100
~~~
101
101
102
102
The code uses regular expressions to parse successive lines from the input
103
- file, creating a new ` Person ` object for each match and pushing it on to the
103
+ file, creating a new ` Person ` object for each match and pushing it onto the
104
104
end of the array ` people ` .
105
105
106
106
~~~
@@ -147,24 +147,24 @@ programming language newer (and hopefully better) than Perl.
147
147
148
148
### What is the history of Ruby?
149
149
150
- The following a summary of a posting made by Matz in [ ruby-talk:00382] on
151
- June 4, 1999. (The birthday of Ruby is corrected in [ ruby-list:15977] ).
150
+ The following is a summary of a posting made by Matz in [ ruby-talk:00382] on
151
+ June 4, 1999. (The birthday of Ruby has been corrected in [ ruby-list:15977] .)
152
152
153
- > Well, Ruby was born on February 24 1993. I was talking with my colleague
153
+ > Well, Ruby was born on February 24, 1993. I was talking with my colleague
154
154
> about the possibility of an object-oriented scripting language. I knew Perl
155
- > (Perl4, not Perl5), but I didn't like it really, because it had smell of toy
156
- > language (it still has). The object-oriented scripting language seemed very
157
- > promising.
155
+ > (Perl4, not Perl5), but I didn't like it really, because it had the smell of
156
+ > a toy language (it still has). The object-oriented scripting language seemed
157
+ > very promising.
158
158
159
159
> I knew Python then. But I didn't like it, because I didn't think it was a
160
- > true object-oriented language---OO features appeared to be add-on to the
160
+ > true object-oriented language---OO features appeared to be an add-on to the
161
161
> language. As a language manic and OO fan for 15 years, I really wanted a
162
162
> genuine object-oriented, easy-to-use scripting language. I looked for, but
163
163
> couldn't find one.
164
164
165
165
> So, I decided to make it. It took several months to make the interpreter
166
- > run. I put it the features I love to have in my language, such as iterators,
167
- > exception handling, garbage collection.
166
+ > run. I put into it the features I love to have in my language, such as
167
+ > iterators, exception handling, garbage collection.
168
168
169
169
> Then, I reorganized the features of Perl into a class library, and
170
170
> implemented them. I posted Ruby 0.95 to the Japanese domestic newsgroups
@@ -196,19 +196,17 @@ comp.lang.ruby was established in May, 2000 (thanks to the efforts of
196
196
There are five mailing lists now talking about Ruby. The first is in English,
197
197
the last four in Japanese:
198
198
199
- ~~~
200
- ruby-talk: English language discussion of Ruby.
201
- ruby-list: Japanese language discussion of Ruby.
202
- ruby-dev: List for Ruby developers.
203
- ruby-ext: List for people writing extensions for or with Ruby.
204
- ruby-math: Ruby in mathematics.
205
- ~~~
199
+ * ` ruby-talk ` : English language discussion of Ruby.
200
+ * ` ruby-list ` : Japanese language discussion of Ruby.
201
+ * ` ruby-dev ` : List for Ruby developers.
202
+ * ` ruby-ext ` : List for people writing extensions for or with Ruby.
203
+ * ` ruby-math ` : Ruby in mathematics.
206
204
207
205
See [ joining the mailing list] ( http://www.ruby-lang.org/en/ml.html ) .
208
206
209
207
You can search the mailing list archives using
210
208
[ http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml ] ( http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml ) .
211
- (This is the url for the ruby-talk list: munge as required for the others).
209
+ (This is the URL for the ruby-talk list, munge as required for the others).
212
210
213
211
### How can I thread the mailing list in mutt?
214
212
@@ -233,32 +231,32 @@ Originally, or historically, it was called “ruby”.
233
231
234
232
### Are there any Ruby books?
235
233
236
- Programming Ruby: The Pragmatic Programmer's Guide, (the Pickaxe Book) by
237
- David Thomas and Andrew Hunt: ISBN 0-20171-089-7, Addison-Wesley ,
238
- October 2000.
234
+ * Programming Ruby: The Pragmatic Programmer's Guide,
235
+ (the Pickaxe Book) by David Thomas and Andrew Hunt: ISBN 0-20171-089-7,
236
+ Addison-Wesley, October 2000.
239
237
240
- A Japanese language Ruby reference book by matz, et al and published by ASCII
241
- is available in Japan (ISBN 4-7561-3254-5). An English translation,
242
- “The Ruby Programming Language”, is in the works from Addison-Wesley
243
- (ISBN 020171096X).
238
+ * A Japanese language Ruby reference book by matz et al. and published by
239
+ ASCII is available in Japan (ISBN 4-7561-3254-5). An English translation,
240
+ “The Ruby Programming Language”, is in the works from Addison-Wesley
241
+ (ISBN 020171096X).
244
242
245
- A Japanese language “Ruby Pocket Reference” is published by O'Reilly Japan
246
- (ISBN 4-87311-023-8). Let O'Reilly in the US know if you'd like to see a
247
- translation.
243
+ * A Japanese language “Ruby Pocket Reference” is published by O'Reilly Japan
244
+ (ISBN 4-87311-023-8). Let O'Reilly in the US know if you'd like to see a
245
+ translation.
248
246
249
- In addition, “Mastering Regular Expressions”, by Jeffrey Friedl, (the Hip
250
- Owl Book): ISBN 1-56592-257-3 from O'Reilly & Associates, is a reference work
251
- that covers the art and implementation of regular expressions in various
252
- programming languages. Most of it is highly relevant to Ruby regular
253
- expressions.
247
+ * In addition, “Mastering Regular Expressions”, by Jeffrey Friedl,
248
+ (the Hip Owl Book): ISBN 1-56592-257-3 from O'Reilly & Associates,
249
+ is a reference work that covers the art and implementation of regular
250
+ expressions in various programming languages. Most of it is highly
251
+ relevant to Ruby regular expressions.
254
252
255
253
### Which editors provide support for Ruby?
256
254
257
255
* [ Emacs] ( http://www.gnu.org/software/emacs/emacs.html )
258
256
or [ XEmacs] ( http://www.xemacs.org/ ) : ` ruby-mode.el ` is supplied in the Ruby
259
257
distribution. With some versions of XEmacs, you may need to add
260
258
` (load "font-lock") ` to your ` .emacs ` file to allow ` ruby-mode.el ` to detect
261
- the syntax highlighting package you're using.
259
+ the syntax highlighting package you are using.
262
260
* [ Vim] ( http://www.vim.org/ ) : Vim 5.7 and later have Ruby syntax files as
263
261
standard in the runtime package. For prior versions, a syntax file for Ruby
264
262
is available at
@@ -279,7 +277,7 @@ expressions.
279
277
People commonly annotate Ruby code by showing the results of executing each
280
278
statement as a comment attached to that statement. For example, in the
281
279
following code, we show that the assignment generates the string "Billy Bob",
282
- and then result of extracting some substrings.
280
+ and then the result of extracting some substrings.
283
281
284
282
~~~
285
283
str = "Billy" + " Bob" # => "Billy Bob"
@@ -322,7 +320,7 @@ behind.
322
320
If you have a problem, feel free to ask in the mailing list
323
321
(see [ ruby-talk mailing list] ( #mailing-lists ) ).
324
322
Generally you'll get timely answers from matz himself, the
325
- author of the language, from other gurus, and from those who've solved
323
+ author of the language, from other gurus, and from those who have solved
326
324
problems similar to your own.
327
325
328
326
Please include the output of ` ruby -v ` along with any problematic
0 commit comments