The Ruby Workshop
上QQ阅读APP看书,第一时间看更新

4. Ruby Methods

Overview

By the end of this chapter, you will be able to define and call your own methods for Ruby programs; set parameters for methods in Ruby; provide default values for a parameter in Ruby; implement methods in Ruby that return multiple values and write code using the built-in modules of Time and Math.