View on GitHub
Add the meat of a DSL block to some level of this class's DSL.
In order for Docile to parse a DSL, each level must be represented by a
different class. This method creates anonymous classes that each represents
a different level in the DSL's structure.
The creation of each DSL element is delegated to build_dsl_element.
@param args [Hash] the elements of the DSL block (passed to generate_dsl)
@param defn_block [Proc] what is executed once the DSL block is parsed.
@return [Class] The class that implements this level's DSL definition.
- Add a code example (optional).