Functions and Methods

  • Matt Clements


We have learned a lot about the Ruby programming language itself in the previous chapters along with its syntax and type characteristics. In this chapter we begin to look at "reusable code," the ability to write a snippet of code that can be used multiple times during our application. This is sometimes known as the D.R.Y. (Don't Repeat Yourself) principle.


Default Parameter Initialize Method Previous Chapter Instance Method Reusable Code 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Matt Clements 2014

Authors and Affiliations

  • Matt Clements
    • 1
  1. 1.BucksUK

Personalised recommendations