Summary
In this chapter, you learned that Ruby doesn't have class methods – it only has instance methods on singleton classes. You learned that the length of a method name should be proportional to the inverse of the frequency of calling the method. You then learned about Ruby's many types of arguments, such as positional arguments, keyword arguments, and block arguments, and when it is best to use each. You also learned about method visibility and how important it is for backward compatibility. Finally, you learned how to implement method delegation in Ruby. With the knowledge you've gained, you'll be able to design better methods, which will make the libraries and applications you write easier to use and maintain.
In the next chapter, you'll learn how best to handle errors and other exceptional situations in your Ruby code.