Giter Site home page Giter Site logo

rubyusersguide-zh's Introduction

简介

Ruby用户指南 Ruby : A PROGRAMMER'S BEST FRIEND

这是 Ruby User’s Guide的简体中文版本:Ruby用户指南

本文档基于GOTO KentaroJulian Fondren的英文版本翻译而来,而该英文版本则是基于Ruby的发明者Yukihiro Matsumoto编写的日文版本翻译而来。

为了减少翻译过程中的错误,我保留了英文版本的内容。因此不要对本文档有任何的抱怨或不满,Fork并完善它才是更有意义的事情!

只要眼睛多,bug容易捉。——李纳斯法则

不要对错误和缺陷视而不见,任何建议或修正,请提交Issues,你的任何细微贡献,都将被提名感谢。

向所有为本指南添砖加瓦的人致敬

目录

Ruby是什么?

起步

简单示例

字符串

正则表达式

数组

再读“简单示例”

流程控制

迭代器

面向对象的思考

方法

继承

重新定义方法

访问控制

单例方法

模块

过程对象

变量

全局变量

实例变量

局部变量

类常量

异常处理:rescue

异常处理:ensure

访问器

对象初始化

其他

关于本指南

版权信息

贡献者名单

Copyright (c) 2005-2014 Mark Slagell

本文档遵循GNU Free Documentation License

rubyusersguide-zh's People

Contributors

badtudou avatar

Watchers

Kyle Liu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.