找回密码
 To register

QQ登录

只需一步,快速开始

扫一扫,访问微社区

Titlebook: Ruby Quick Syntax Reference; Matt Clements Book 2014 Matt Clements 2014

[复制链接]
楼主: 空隙
发表于 2025-3-27 00:37:12 | 显示全部楼层
Numbers,The Numeric class within Ruby is a containing class for the Integer and Float classes. This contains all methods linked to numeric variables either with (float) or without (integer) decimal places. The Numeric class is a very simple class, which holds the ability to perform a number of complex calculations with numbers.
发表于 2025-3-27 04:26:49 | 显示全部楼层
发表于 2025-3-27 06:18:26 | 显示全部楼层
发表于 2025-3-27 10:57:34 | 显示全部楼层
Blocks, Procs, and Lambdas,Some of the most powerful features of the Ruby language are closures, which are known as blocks, procs, and lambdas within Ruby. Closures within Ruby are also often misunderstood, mainly due to the flexibility when using them within Ruby.
发表于 2025-3-27 15:21:17 | 显示全部楼层
Files and Directories,Continuing from the previous chapter, here we look at Ruby’s ability to deal with files and directories. Within a Ruby application, we may need to open files, amend those files, and write them back to a particular directory, or we may need to open a file, process this file, and move the file into another directory.
发表于 2025-3-27 18:24:59 | 显示全部楼层
Objects,ype we will look at is the Object data type. The Object data type (also known as BasicObject) mixes with the Kernel module to import a number of useful methods, which can be utilized for variousscenarios within Ruby programming.
发表于 2025-3-27 23:04:45 | 显示全部楼层
Functions and Methods,ter we begin to look at "reusable code," the ability to write a snippet of code that can be used multiple times during our application. This is sometimes known as the D.R.Y. (Don‘t Repeat Yourself) principle.
发表于 2025-3-28 02:27:33 | 显示全部楼层
Errors and Exceptions, exceptions within our code. Some of these errors and exceptions we will want to generate ourselves, such as when we have detected some abnormal behavior within the system, whereas other errors and exceptions will be thrown from the Ruby language itself, or other third-party libraries.
发表于 2025-3-28 09:31:42 | 显示全部楼层
发表于 2025-3-28 14:02:39 | 显示全部楼层
http://image.papertrans.cn/r/image/832003.jpg
 关于派博传思  派博传思旗下网站  友情链接
派博传思介绍 公司地理位置 论文服务流程 影响因子官网 SITEMAP 大讲堂 北京大学 Oxford Uni. Harvard Uni.
发展历史沿革 期刊点评 投稿经验总结 SCIENCEGARD IMPACTFACTOR 派博系数 清华大学 Yale Uni. Stanford Uni.
|Archiver|手机版|小黑屋| 派博传思国际 ( 京公网安备110108008328) GMT+8, 2025-6-9 08:27
Copyright © 2001-2015 派博传思   京公网安备110108008328 版权所有 All rights reserved
快速回复 返回顶部 返回列表