官术网_书友最值得收藏!

Using strings in Ruby

A string is a data type in Ruby and contains a set of characters, typically normal English text (or whatever natural language you're building your program for), that you would write. A key point for the syntax of strings is that they have to be enclosed in single or double quotes if you want to use them in a program. The program will throw an error if they are not wrapped inside quotation marks.

Let's walk through three scenarios.

主站蜘蛛池模板: 商河县| 万山特区| 家居| 襄汾县| 兴和县| 襄汾县| 右玉县| 科尔| 安阳县| 日照市| 温州市| 徐水县| 女性| 台江县| 信阳市| 阜新| 新干县| 阿图什市| 双柏县| 多伦县| 吉隆县| 乐安县| 塔河县| 宜州市| 黔南| 五华县| 彰化县| 卫辉市| 大理市| 江孜县| 富锦市| 沅江市| 麻栗坡县| 绥滨县| 平顶山市| 宁陕县| 连山| 通辽市| 汨罗市| 大方县| 永州市|