The purpose of this document is to teach people who are new to Ruby or programming as a whole about some general programming concepts that apply to many more languages, but also about Ruby specifically. The clean syntax of Ruby will make it easier to understand everything and follow along with the tutorials.
Please note that there is so much more to Ruby than just what is covered here. These are merely the basics with which you will be able to write your own programs or edit code you’ve seen somewhere without having to worry about breaking things.
本文档的目的是向刚接触 Ruby 或编程的新手传授一些基础的通用编程概念。
It is suggested that you follow the order of the Table of Contents, as they are listed from easy to hard. You will not understand Modules if you don’t understand Classes, for instance.
希望你按照目录的顺序进行学习,不要跳着学。
If you’d like to link to this document, you also have the ability of linking to
https://bit.ly/RubyBasics.
Cyan: This represents an additional note which may be confusing to beginners. It is mainly meant for people who already know a bit about programming or have experience with other programming languages. It’s also used to give extra information sometimes for those who understand it and/or are interested in it. You will not miss anything important by skipping over these.
蓝色:这部分是对于一些人可能感到疑惑的点的额外补充说明。技术上来说,你不需要在意,忽略就好。