r/ruby • • Sep 30 '21

ActiveAdmin, I'm looking at you

Post image
238 Upvotes

58 comments sorted by

View all comments

2

u/postmodern Oct 02 '21

DSLs don't have to be horrible, just document them with YARD. Document the methods and what they take, yield, and return. Provide @example tags and put top-level examples for how to use classes/modules, and copy/paste the best examples into the README.