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

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.

主站蜘蛛池模板: 沂源县| 九龙县| 边坝县| 丹东市| 平利县| 英德市| 西乌| 仙游县| 上林县| 沙河市| 广平县| 山东省| 石楼县| 诸暨市| 中方县| 拉孜县| 三河市| 定襄县| 七台河市| 新乡县| 锦屏县| 育儿| 克什克腾旗| 阿尔山市| 馆陶县| 视频| 竹北市| 蒲城县| 文山县| 宜良县| 东安县| 进贤县| 依安县| 桓仁| 宾阳县| 山东省| 淄博市| 景泰县| 依安县| 阳江市| 乌兰浩特市|