Module: Mutineer::ReloadGuards::EnumRedeclaration
- Defined in:
- lib/mutineer/reload_guards.rb
Overview
Skips the conflict check for an enum the class defined before the mutant load began, during that load only.
Instance Method Summary collapse
Instance Method Details
#detect_enum_conflict!(enum_name) ⇒ void (private)
This method returns an undefined value.
48 49 50 51 52 |
# File 'lib/mutineer/reload_guards.rb', line 48 def detect_enum_conflict!(enum_name, *) return if ReloadGuards.loading? && ReloadGuards.enum_existed?(self, enum_name) super end |