Operators
We’ve already used some arithmetic operators (+ and *) above. You have also learned that operators, under the hood, are just methods. Ruby just adds a little bit of syntax sugar on top of these methods, so they’re sweeter to read, and write.
There also are operators for comparing things, for logical calculations, and other operations. Let talk about some more of them.
当前内容版权归 rubymonstas 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 rubymonstas .
