July 2021
Intermediate to advanced
434 pages
8h 36m
English
Ruby makes it easy to implement domain-specific languages (DSLs), and many popular libraries offer DSLs to improve their usability.
In this chapter, you'll learn how to design and implement a DSL, which problems are handled well by DSLs, and both the advantages and disadvantages of using DSLs in your libraries.
We will cover the following topics:
By the end of the chapter, you'll have a better understanding of not only how to design a DSL, but why it may or may not be a good idea to do so.
In this chapter and all chapters of this book, code given in code blocks is designed to be executed on Ruby ...