Method: Assertion::DSL::Builder#guards
- Defined in:
- lib/assertion/dsl/builder.rb
#guards(attribute = nil, &block) ⇒ Class
Builds the subclass of Assertion::Guard with given attribute (alias for the object) and implementation of the #state method.
63 64 65 |
# File 'lib/assertion/dsl/builder.rb', line 63 def guards(attribute = nil, &block) __build__(Guard, attribute, :state, &block) end |