method

update_or_replace

ruby latest stable - Class: Generators::RIGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

update_or_replace(cls_desc)
private

By default we replace existing classes with the same name. If the –merge option was given, we instead merge this definition into an existing class. We add our methods, aliases, etc to that class, but do not change the class’s description.