找回密码
 立即注册
首页 资源区 代码 ruby学习笔记(2) -- 概念类

ruby学习笔记(2) -- 概念类

啖曼烟 2025-6-4 20:09:48
学习ruby中记录下的一些要点和感悟,随缘更新

内容来自 《“笨方法”学ruby》、https://www.runoob.com/ ,此处仅做记录
KeyWord
  1. alias and BEGIN begin break case class def defined? do else elsif END end ensure
  2. false for if in module next nil nor or redo rescue retry return self super then true
  3. undef unless until when while yield
复制代码
Data Class
  1. true false nil constants strings numbers ranges arrays hashes
复制代码
String Formats
  1. \\ \' " \a \b \n \r \t \v
复制代码
Operators
  1. :: [] ** -(unary) +(unary) ! ~ * / % + - << >> & | > >= < <= <=> == === != =~ && || .. ...
复制代码
逻辑术语

[table][tr]and和[/tr][tr][td]or[/td][td]或[/td][/tr][tr][td]not[/td][td]非[/td][/tr][tr][td]!=[/td][td]不等于[/td][/tr][tr][td]==[/td][td]等于[/td][/tr][tr][td]>=[/td][td]大于等于[/td][/tr][tr][td]
您需要登录后才可以回帖 登录 | 立即注册