{"id":17298223,"url":"https://github.com/wang1212/the-book-of-ruby","last_synced_at":"2025-04-14T12:23:01.092Z","repository":{"id":40439561,"uuid":"153862199","full_name":"wang1212/the-book-of-ruby","owner":"wang1212","description":":book: Chinese translation of the book - 《The Book Of Ruby》| 《The Book Of Ruby》 的中文翻译版本。","archived":false,"fork":false,"pushed_at":"2023-12-15T17:52:40.000Z","size":5194,"stargazers_count":15,"open_issues_count":26,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T01:44:37.231Z","etag":null,"topics":["book","chinese","ruby","translation"],"latest_commit_sha":null,"homepage":"https://wang1212.github.io/the-book-of-ruby/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wang1212.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-20T02:28:42.000Z","updated_at":"2025-03-20T13:23:51.000Z","dependencies_parsed_at":"2023-02-02T19:03:15.963Z","dependency_job_id":null,"html_url":"https://github.com/wang1212/the-book-of-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang1212%2Fthe-book-of-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang1212%2Fthe-book-of-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang1212%2Fthe-book-of-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang1212%2Fthe-book-of-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wang1212","download_url":"https://codeload.github.com/wang1212/the-book-of-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248878657,"owners_count":21176349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["book","chinese","ruby","translation"],"created_at":"2024-10-15T11:18:30.419Z","updated_at":"2025-04-14T12:23:01.047Z","avatar_url":"https://github.com/wang1212.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 《The Book Of Ruby》 - Chinese Edition\n\n本项目对开源书籍《The Book Of Ruby》进行了简体中文的翻译，目的：\n\n1. 通过本书了解 Ruby 语言的细节和内部机制；\n2. 作为留给自己和国内同样热爱 Ruby 的开发者的一份参考资料，中文版可以快速浏览和查阅；\n3. 算是对开源社区做的一份小小贡献，正所谓 - 给予比接受更快乐！\n\n## 在线浏览\n\nhttps://wang1212.github.io/the-book-of-ruby/\n\n## 关于本书\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://wang1212.github.io/the-book-of-ruby/images/book-of-ruby.jpg\" /\u003e\n\u003c/div\u003e\n\n书名：《The Book Of Ruby》\n\n作者：How Collingbourne\n\n页数：425 页\n\n出版时间：2011-7-13\n\n翻译完成时间：2019.01.13\n\n简介：《The Book Of Ruby》是一本免费的 Ruby 编程高级教程。以 PDF 文件格式提供，并且每一个章节的所有例子都伴有可运行的源代码。同时，也有一个介绍来阐述如何在 Steel 或其它任何你喜欢的编辑器/IDE 中运行这些 Ruby 代码。它主要集中于 Ruby 语言的 1.8.x 版本。\n\n目录概述：\n\n- 第一章：字符串、数字、类和对象 - 获取输入和输出，字符串和内嵌表达式，数字和测试语句 if...then，局部变量和全局变量，类和对象，实例变量，消息、方法与多态性，构造方法与对象初始化，查看对象信息。\n- 第二章：类的层次结构、属性与变量 - 超类与子类，访问器方法，属性读写，调用超类方法，类变量。\n- 第三章：字符串和 Range - 字符串分隔符，字符串处理方法，Range，Range 迭代器。\n- 第四章：数组与 Hash - 常用处理方法。\n- 第五章：循环和迭代器 - for 循环，多参数迭代，代码块，while 循环，until 循环，loop 循环。\n- 第六章：条件语句 - if...then...else，and...or...not，if...elsif，unless，case 语句，=== 方法，catch 与 throw。\n- 第七章：方法 - 类方法，类变量，构造方法，单例方法，单例类，重写方法，public、private 和 protected 方法。\n- 第八章：参数传递与返回值 - 实例方法，类方法，单例方法，返回值，返回多个值，默认参数和多参数，整数，进出原则，并行赋值，引用传值。\n- 第九章：异常处理 - rescue，ensure，else，error 编号，retry，raise。\n- 第十章：Block、Proc 和 Lambda - 匿名函数，proc 与 lambda，闭包，yield，嵌套块，优先级规则，块中实例变量，块中局部变量。\n- 第十一章：符号 - 符号与字符串，符号和变量，为什么使用符号？\n- 第十二章：模块和 mixin - 模块与类，模块方法，命名空间，包含模块，alias 方法，作用域解析符。\n- 第十三章：文件与 IO - 打开和关闭文件，文件和目录，赋值文件，目录查询，递归，排序。\n- 第十四章：Yaml - 转换成 yaml，嵌套序列，保存 yaml 数据，一个文件包含多个 yaml 文档，yaml 数据库。\n- 第十五章：Marshal - 保存与加载数据，保存单例对象，yaml 与单例对象。\n- 第十六章：正则表达式 - 匹配组，前后匹配，贪婪匹配，字符串方法，文件操作。\n- 第十七章：线程 - 创建线程，运行线程，主线程，线程状态，线程优先级，主线程优先级，互斥。\n- 第十八章：调试与测试 - irb、调试、单元测试、断言。\n- 第十九章：Ruby On Rails - 安装 RoR、第一个 RoR 应用，创建控制器，创建视图，Rails 标记，MVC。\n- 第二十章：动态编程 - 自修改程序，eval，动态添加变量和方法，运行时创建类，绑定，send，移除方法。\n\n本书由 SapphireSteel Software 发布，SapphireSteel Software 是用于 Visual Studio 的 Ruby In Steel 集成开发环境的开发者。读者可以复制和发布本书的文本和代码（免费版）。\n\n## 引用\n\n如要引用该项目，请注明出处，谢谢！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang1212%2Fthe-book-of-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwang1212%2Fthe-book-of-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang1212%2Fthe-book-of-ruby/lists"}