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

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.

主站蜘蛛池模板: 永兴县| 玉龙| 芷江| 易门县| 元氏县| 泽库县| 米易县| 什邡市| 金阳县| 宾川县| 西城区| 齐齐哈尔市| 玉溪市| 朝阳区| 曲阳县| 饶阳县| 黄平县| 永德县| 广水市| 青田县| 福清市| 平定县| 会泽县| 神池县| 夹江县| 潮州市| 龙江县| 刚察县| 叙永县| 南平市| 卢龙县| 阿拉善左旗| 长岭县| 霍州市| 商南县| 普陀区| 深水埗区| 志丹县| 龙州县| 武乡县| 宜宾市|