- 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
推薦閱讀
- Java Web開發(fā)學(xué)習(xí)手冊(cè)
- Blockly創(chuàng)意趣味編程
- Cassandra Data Modeling and Analysis
- Reactive Programming With Java 9
- C程序設(shè)計(jì)案例教程
- Python Web數(shù)據(jù)分析可視化:基于Django框架的開發(fā)實(shí)戰(zhàn)
- Java網(wǎng)絡(luò)編程核心技術(shù)詳解(視頻微課版)
- R數(shù)據(jù)科學(xué)實(shí)戰(zhàn):工具詳解與案例分析
- OpenCV 3 Blueprints
- Visual FoxPro 6.0程序設(shè)計(jì)
- Photoshop智能手機(jī)APP界面設(shè)計(jì)
- Scrapy網(wǎng)絡(luò)爬蟲實(shí)戰(zhàn)
- Android高級(jí)開發(fā)實(shí)戰(zhàn):UI、NDK與安全
- WCF技術(shù)剖析(卷1)
- Python應(yīng)用開發(fā)技術(shù)