<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0047)#ch01 -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="ja">
<link href="./たのしいRuby 第3版_files/document.css" type="text/css" rel="stylesheet">
<title>「たのしいRuby 第3版」プログラムリスト</title>
<script type="text/javascript" src="./たのしいRuby 第3版_files/shCore.js"></script>
<script type="text/javascript" src="./たのしいRuby 第3版_files/shBrushRuby.js"></script>
<link type="text/css" rel="stylesheet" href="./たのしいRuby 第3版_files/shCore.css">
<link type="text/css" rel="stylesheet" href="./たのしいRuby 第3版_files/shThemeEclipse.css">
<script type="text/javascript">
SyntaxHighlighter.config.clipboardSwf = '../sh/scripts/clipboard.swf';
SyntaxHighlighter.config.strings.expandSource = 'ソースを見る';
SyntaxHighlighter.config.strings.viewSource = '別のウィンドウで表示';
SyntaxHighlighter.config.strings.copyToClipboard = 'クリップボードにコピー';
SyntaxHighlighter.config.strings.copyToClipboardConfirmation = 'コードがクリップボードにコピーされました';
SyntaxHighlighter.config.strings.print = '印刷';
SyntaxHighlighter.config.strings.help = 'ヘルプ';
SyntaxHighlighter.all();
</script>
</head>
<body>
<h1>「たのしいRuby 第3版」プログラムリスト</h1>
<div class="navigation">
[<a href="./たのしいRuby 第3版_files/「たのしいRuby 第3版」プログラムリスト.htm">第1章</a>|<a href="#ch02">第2章</a>|<a href="#ch03">第3章</a>|<a href="#ch04">第4章</a>|<a href="#ch05">第5章</a>|<a href="#ch06">第6章</a>|<a href="#ch07">第7章</a>|<a href="#ch08">第8章</a>|<a href="#ch09">第9章</a>|<a href="#ch10">第10章</a>|<a href="#ch11">第11章</a>|<a href="#ch12">第12章</a>|<a href="#ch13">第13章</a>|<a href="#ch14">第14章</a>|<a href="#ch15">第15章</a>|<a href="#ch16">第16章</a>|<a href="#ch17">第17章</a>|<a href="#ch18">第18章</a>|<a href="#ch19">第19章</a>|<a href="#ch20">第20章</a>|<a href="#ch21">第21章</a>|<a href="#ch22">第22章</a>|<a href="#ch23">第23章</a>]
</div>
<h2 id="ch01">第1章 はじめてのRuby</h2>
<h3>List 1.1 : helloruby.rb</h3>
<div id="highlighter_906487" class="syntaxhighlighter "><div class="bar "><div class="toolbar"><a href="#viewSource" title="別のウィンドウで表示" style="width: 16px; height: 16px; " class="item viewSource">別のウィンドウで表示</a><div class="item copyToClipboard"><embed width="16" height="16" id="highlighter_906487_clipboard" type="application/x-shockwave-flash" title="クリップボードにコピー" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_906487" menu="false" src="../sh/scripts/clipboard.swf"></div><a href="#printSource" title="印刷" style="width: 16px; height: 16px; " class="item printSource">印刷</a><a href="#about" title="ヘルプ" style="width: 16px; height: 16px; " class="item about">ヘルプ</a></div></div><div class="lines"><div class="line alt1"><table><tbody><tr><td class="number"><code>1</code></td><td class="content"><code class="plain">print(</code><code class="string">"Hello, Ruby.\n"</code><code class="plain">)</code></td></tr></tbody></table></div></div></div>
<h3>List 1.2 : put_and_p.rb</h3>
<div id="highlighter_108206" class="syntaxhighlighter "><div class="bar "><div class="toolbar"><a href="#viewSource" title="別のウィンドウで表示" style="width: 16px; height: 16px; " class="item viewSource">別のウィンドウで表示</a><div class="item copyToClipboard"><embed width="16" height="16" id="highlighter_108206_clipboard" type="application/x-shockwave-flash" title="クリップボードにコピー" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_108206" menu="false" src="../sh/scripts/clipboard.swf"></div><a href="#printSource" title="印刷" style="width: 16px; height: 16px; " class="item printSource">印刷</a><a href="#about" title="ヘルプ" style="width: 16px; height: 16px; " class="item about">ヘルプ</a></div></div><div class="lines"><div class="line alt1"><table><tbody><tr><td class="number"><code>1</code></td><td class="content"><code class="plain">puts </code><code class="string">"Hello,\n\tRuby."</code></td></tr></tbody></table></div><div class="line alt2"><table><tbody><tr><td class="number"><code>2</code></td><td class="content"><code class="plain">p </code><code class="string">"Hello,\n\tRuby."</code></td></tr></tbody></table></div></div></div>
<h3>List 1.3 : kiritsubo.rb</h3>
<div id="highlighter_113882" class="syntaxhighlighter "><div class="bar "><div class="toolbar"><a href="#viewSource" title="別のウィンドウで表示" style="width: 16px; height: 16px; " class="item viewSource">別のウィンドウで表示</a><div class="item copyToClipboard"><embed width="16" height="16" id="highlighter_113882_clipboard" type="application/x-shockwave-flash" title="クリップボードにコピー" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_113882" menu="false" src="../sh/scripts/clipboard.swf"></div><a href="#printSource" title="印刷" style="width: 16px; height: 16px; " class="item printSource">印刷</a><a href="#about" title="ヘルプ" style="width: 16px; height: 16px; " class="item about">ヘルプ</a></div></div><div class="lines"><div class="line alt1"><table><tbody><tr><td class="number"><code>1</code></td><td class="content"><code class="plain">print </code><code class="string">"いづれの御時にか女御更衣あまたさぶらいたまいけるなかに\n"</code></td></tr></tbody></table></div><div class="line alt2"><table><tbody><tr><td class="number"><code>2</code></td><td class="content"><code class="plain">print </code><code class="string">"いとやむごとなき際にはあらぬがすぐれて時めきたまふありけり\n"</code></td></tr></tbody></table></div></div></div>
<h3>List 1.4 : area_volume.rb</h3>
<div id="highlighter_544107" class="syntaxhighlighter "><div class="bar show"><div class="toolbar"><a href="#viewSource" title="別のウィンドウで表示" style="width: 16px; height: 16px; " class="item viewSource">別のウィンドウで表示</a><div class="item copyToClipboard"><embed width="16" height="16" id="highlighter_544107_clipboard" type="application/x-shockwave-flash" title="クリップボードにコピー" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_544107" menu="false" src="../sh/scripts/clipboard.swf"></div><a href="#printSource" title="印刷" style="width: 16px; height: 16px; " class="item printSource">印刷</a><a href="#about" title="ヘルプ" style="width: 16px; height: 16px; " class="item about">ヘルプ</a></div></div><div class="lines"><div class="line alt1"><table><tbody><tr><td class="number"><code>1</code></td><td class="content"><code class="plain">x = </code><code class="constants">10</code></td></tr></tbody></table></div><div class="line alt2"><table><tbody><tr><td class="number"><code>2</code></td><td class="content"><code class="plain">y = </code><code class="constants">20</code></td></tr></tbody></table></div><div class="line alt1"><table><tbody><tr><td class="number"><code>3</code></td><td class="content"><code class="plain">z = </code><code class="constants">30</code></td></tr></tbody></table></div><div class="line alt2"><table><tbody><tr><td class="number"><code>4</code></td><td class="content"><code class="plain">area = (x*y + y*z + z*x) * </code><code class="constants">2</code></td></tr></tbody></table></div><div class="line alt1"><table><tbody><tr><td class="number"><code>5</code></td><td class="content
没有合适的资源?快使用搜索试试~ 我知道了~
RubyProgramming_向Ruby之父学程序设计(第2版) 原书代码
共123个文件
rb:117个
css:3个
js:2个
需积分: 10 8 下载量 151 浏览量
2013-03-07
18:56:32
上传
评论
收藏 82KB ZIP 举报
温馨提示
RubyProgramming_向Ruby之父学程序设计(第2版) 原书代码 包含 第2版 及 第3版 两个版本的代码 第2版的代码 打开时,注意编码格式为 EUC_JP(日本人的编码),否则会乱码 。 第3版为 一个 html文件及几个css文件,utf-8格式即可。 good luck, enjoy ruby :)
资源推荐
资源详情
资源评论
收起资源包目录
RubyProgramming_向Ruby之父学程序设计(第2版) 原书代码 (123个子文件)
shCore.css 7KB
shThemeEclipse.css 4KB
document.css 1KB
たのしいRuby 第3版.htm 388KB
shCore.js 19KB
shBrushRuby.js 3KB
24.03.htmlscanner.rb 2KB
24.05.getlinks.rb 1KB
19.03.vevtor.rb 1KB
20.11.booklist.rb 1KB
24.04.htmlscanner_sample.rb 998B
09.01.wc.rb 911B
24.02.htmlscan_test.rb 885B
23.04.jzipcode.rb 736B
08.06.point.rb 638B
22.07.accesslog_file.rb 590B
22.06.accesslog_date04.rb 563B
08.02.hello_count.rb 509B
22.05.accesslog_date03.rb 506B
23.02.jzipcode.rb 500B
08.07.hello_module.rb 473B
20.09.booklist.rb 468B
16.02.listdir.rb 457B
08.04.ring_array.rb 428B
16.01.traverse.rb 421B
21.01.book_cmp.rb 412B
22.04.accesslog_date02.rb 395B
06.13.break_next_redo.rb 391B
23.05.jzipcode.rb 385B
08.01.hello_class.rb 372B
20.10.booklist_test.rb 361B
21.04.booklist_enum_test.rb 344B
08.05.acc_test.rb 341B
15.03.read_uri.rb 336B
23.03.jzipcode.rb 329B
21.02.book_test.rb 326B
01.07.comment_sample.rb 313B
06.14.ten_lines_grep.rb 281B
24.01.html_comment.rb 265B
02.02.fontsize.rb 250B
05.04.case.rb 247B
13.01.word_count.rb 243B
03.03.arg_arith.rb 242B
08.03.ext_string.rb 230B
22.03.accesslog_date.rb 224B
15.12.simple_grep_gz.rb 219B
11.05.sum_with_each.rb 219B
11.06.sum_with_zip.rb 195B
18.02.warning_sample.rb 191B
05.05.case_class.rb 187B
15.11.test_buffering3.rb 180B
15.10.test_buffering2.rb 179B
23.01.split_zip.rb 168B
20.08.book.rb 164B
20.07.hash_each2.rb 160B
09.02.catch_throw_sample.rb 156B
03.06.simple_grep.rb 155B
07.02.hello_with_default.rb 148B
06.15.strip.rb 147B
20.06.hash_each.rb 144B
15.04.read_uri_jp.rb 136B
15.09.test_buffering1.rb 134B
01.03.kiritsubo.rb 134B
01.04.arith.rb 130B
18.04.data_sample.rb 129B
21.03.booklist_enum.rb 127B
01.06.area_volume.rb 127B
05.02.if_elsif.rb 126B
18.05.lib_with_sample.rb 121B
15.06.stringio_gets.rb 117B
15.05.stringio_puts.rb 116B
03.01.print_argv.rb 111B
11.04.list02.rb 104B
15.01.out.rb 102B
01.11.use_hello.rb 102B
14.04.url_match.rb 99B
01.05.math.rb 99B
03.05.gets_text.rb 95B
06.16.fact.rb 95B
22.01.accesslog_count.rb 93B
11.01.list.rb 92B
11.02.sum_list.rb 89B
11.03.sum_list02.rb 87B
01.08.bigger_smaller.rb 87B
15.02.tty.rb 84B
20.05.print_fruit.rb 83B
22.02.accesslog_count02.rb 82B
05.01.ad02heisei.rb 81B
18.03.backquote_sample.rb 80B
03.04.read_text.rb 80B
15.08.stdout_putc.rb 79B
06.05.for_names.rb 79B
06.11.each_names.rb 77B
20.04.sum_no_each.rb 77B
20.02.print_no_times.rb 75B
06.04.for.rb 72B
06.10.while_not.rb 71B
02.01.each_name.rb 69B
06.09.until.rb 68B
07.01.hello_with_name.rb 67B
共 123 条
- 1
- 2
资源评论
coolpolaris
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功