- Comprehensive Ruby Programming
- Jordan Hudgens
- 109字
- 2021-07-02 21:13:29
Ruby Methods
One of the most powerful tools available to developers is the ability to store functionality and share that behavior throughout a program. In this chapter, you'll learn how to create and use methods in Ruby programs to store processes and reuse them throughout a program, including an overview of procs and lambdas. Additionally, we'll walk through how you can do the following:
- Demonstrate how to build methods in Ruby to encapsulate various processes
- Develop proc- and lambda-based programs and show when to use closures instead of traditional methods
- Recommend how to work with the full list of method argument options, including traditional, splat, named, and default arguments
推薦閱讀
- C語言程序設計教程
- 觸·心:DT時代的大數據精準營銷
- The Android Game Developer's Handbook
- Clojure for Domain:specific Languages
- HTML5+CSS3網頁設計
- MATLAB for Machine Learning
- R用戶Python學習指南:數據科學方法
- Building Dynamics CRM 2015 Dashboards with Power BI
- PHP與MySQL權威指南
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- Qt 4開發實踐
- Java從入門到精通(視頻實戰版)
- 軟件測試(慕課版)
- Getting Started with Web Components
- JBoss AS 7 Development