Implementing the equivalent of Array#replace to clean up Gutentag::TagNames.new_with_names.
Implementing the equivalent of Array#replace to clean up Gutentag::TagNames.new_with_names.

The class method's implementation felt ugly (granted, that's subjective), and replace's implementation is pretty clean. Does make me wonder if the + method does the right thing - should the existing object be modified, or should a new object be returned? Probably the latter, so that's some food for thought.

pat/gutentag,pat/gutentag