- Comprehensive Ruby Programming
- Jordan Hudgens
- 45字
- 2021-07-02 21:13:27
Method chaining
Another neat thing we can do is join different methods together to get a custom output. For example, I can run this:
"Astros".reverse.upcase
The preceding code displays the SORTSA value.
This practice of combining different methods with a dot is called method chaining.
推薦閱讀
- 程序員面試筆試寶典(第3版)
- Debian 7:System Administration Best Practices
- arc42 by Example
- 控糖控脂健康餐
- Python自動化運維快速入門
- Python Data Analysis(Second Edition)
- Unity UI Cookbook
- NetBeans IDE 8 Cookbook
- Orleans:構建高性能分布式Actor服務
- Troubleshooting Citrix XenApp?
- Java EE架構設計與開發實踐
- C Primer Plus(第6版)中文版【最新修訂版】
- 網絡綜合布線與組網實戰指南
- MySQL數據庫應用技術及實戰
- Testing Practitioner Handbook