check_class_collision(options = {}) private

Add a class collisions name to be checked on class initialization. You can supply a hash with a :prefix or :suffix to be tested.


check_class_collision suffix: "Decorator"

If the generator is invoked with class name Admin, it will check for the presence of “AdminDecorator”.

Show source
Register or log in to add new notes.