- Comprehensive Ruby Programming
- Jordan Hudgens
- 105字
- 2021-07-02 21:13:22
Using variables in Ruby

Imagine that you want to send a letter to a friend across the country. Prior to the days of email you would write the letter and place it inside an envelope. Now, the envelope is not the letter itself, instead, envelopes simply hold the letters and allow them to be carried to their destination. In the same way, variables are like envelopes. They store the following:
- Words (also called strings)
- Integers
- Methods
- Collections
The variables themselves are the storage mechanisms for data in Ruby programs. They allow developers to store information in the code and then retrieve the information later on.
推薦閱讀
- Web前端開發技術:HTML、CSS、JavaScript(第3版)
- Mastering Zabbix(Second Edition)
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- INSTANT Weka How-to
- C語言程序設計
- Python面向對象編程:構建游戲和GUI
- 零基礎輕松學SQL Server 2016
- Working with Odoo
- 持續輕量級Java EE開發:編寫可測試的代碼
- App Inventor少兒趣味編程動手做
- 硬件產品設計與開發:從原型到交付
- Training Systems Using Python Statistical Modeling
- PHP項目開發全程實錄(第4版)
- 大規模語言模型開發基礎與實踐
- Implementing Domain:Specific Languages with Xtext and Xtend