First page Back Continue Last page Overview Graphics


(2 secs) The first step is the method definition for validates, which just passes along the block it receives, along with a reference to the current object, to a new DSL class.

The DSL class is named ValidationHelpersAttributesBlock to indicate method names inside the block are used to specify attributes.