Note:
Combining the flags process_all
and no_presence_check
may raise exception if some attribute from the given set doesn’t exist
This method returns an undefined value.
This generic method writes the result of execution of the passed block to each attribute that belongs to the given set of attributes. It’s major purpose is to create filtering methods.
Only the changed attributes/properties are selected, unless the process_all
flag is given. If that flag is given then presence of each attribute is verified, unless the no_presence_check
flag is also set. Attributes with empty or unset values are ignored (but see the flag called process_blank
).
The result of the given block is used to set a new values for processed attributes.