View on GitHub
This adds a verification that's executed after the DSL is finished parsing.
The verification will be called with the value(s) returned by the entrypoint's
execution. If the verification returns a true value (of any kind), then that
will be raised as a runtime exception.
You can also call add_verification on the return values from generate_dsl() or
add_entrypoint(). In those cases, omit the :name because you have already
chosen the DSL layer you're adding the verification to.
@note These verifications are specific to the DSL you add them to.
@note Verifications are called in the order you specify them.
@param name [String] the name of the entrypoint to add a verification to
@param &block [Block] The function to be executed when verifications execute
- Add a code example (optional).