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

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.

主站蜘蛛池模板: 兴业县| 宁南县| 桃园县| 嘉峪关市| 威宁| 大安市| 大兴区| 吴桥县| 察哈| 防城港市| 胶州市| 迁安市| 晋宁县| 肥西县| 淄博市| 无极县| 武功县| 谷城县| 罗平县| 双江| 宜阳县| 邯郸市| 方正县| 确山县| 高阳县| 马山县| 松原市| 南城县| 深水埗区| 行唐县| 武清区| 承德市| 墨江| 泾源县| 古蔺县| 九龙坡区| 行唐县| 会宁县| 霍林郭勒市| 英山县| 新郑市|