@classmethod<EOL><INDENT>def from_yaml(cls, defaults, **kwargs):<DEDENT>
<EOL>if "<STR_LIT>" not in defaults:<EOL><INDENT>kwargs["<STR_LIT>"] = None<EOL><DEDENT>defaults = copy.deepcopy(defaults)<EOL>return cls(<EOL>defaults=defaults,<EOL>token=kwargs.pop("<STR_LIT>"),<EOL>directory=kwargs.pop("<STR_LIT>"),<EOL>**kwargs<EOL>)<EOL>
Creates a new instance of a rule by merging two dictionaries.

        This allows for independant configuration files to be merged
        into the defaults.