No publication info. — 92 p.
Ruby DSL Handbook will help you write powerful, flexible Ruby apps using the same advanced techniques Rails, Sinatra, and Chef use.
Learn how to quickly create Ruby code that speaks your language.
Getting started quickly
Structure With Modules
Heredocs and method definitions
Sharing Helper Code
Creating a custom initializer
Implicit and Explicit code blocks
Declarative Setters
Handling Arguments in Generated Methods
Understanding _eval
A DSL without metaprogramming
External DSLs
Example: Direction
Example: Fattr
Example: FatoryGirl
Antipatterns
Additional Resources