definerules(ruleset,ruleset) → ruleset
The definerules subroutine takes two rulesets as arguments (the target and the content). It empties the target ruleset and then uses insertrule to add the rules from the content ruleset to the target ruleset (indexing as appropriate, based on the value of the variable ruleindexing). It returns the first ruleset as value.
definerules differs from definemorerules in that it empties the target ruleset before adding the new content.