Method: Qonfig::Settings::KeyGuard#prevent_core_method_intersection!

Defined in:
lib/qonfig/settings/key_guard.rb

#prevent_core_method_intersection!void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Raises:

Since:

  • 0.2.0



65
66
67
68
69
70
# File 'lib/qonfig/settings/key_guard.rb', line 65

def prevent_core_method_intersection!
  raise(
    Qonfig::CoreMethodIntersectionError,
    "<#{key}> key can not be used since this is a private core method"
  ) if Qonfig::Settings::CORE_METHODS.include?(key.to_s)
end