Summary
In this chapter, we learned skills that are commonly used in real-world problems, such as metaprogramming, communicating with backend APIs, and creating reusable gems. No Ruby framework or open source library is complete without making use of a lot of metaprogramming. We learned various techniques as well as some of the in-built features of Ruby, including open class, method_missing
, respond_to_missing?
, monkey patching, and define_method
. Next, we learned how to make HTTP requests to interact with external APIs over a network. Lastly, we learned how to package and distribute our reusable code by creating gems ourselves.
In the next chapter, we will learn about the most popular Ruby framework or, should we say, one of the world's most widely used server-side web application frameworks – Ruby on Rails.