# frozen_string_literal: true

# rubocop:disable Style/Documentation
module Rus
  class << self
    # check if default classes are overridden
    def override?
      @override == true
    end
    alias overridden? override?

    # Override default classes: *string, symbol, array*
    # with capitalize! method - without any downcase.
    # @return [Boolean] False if already overridden, otherwise true.
    def override
      return false if override?

      require_relative 'override/main'
      @override = true
    end
    alias override! override
  end
end
# rubocop:enable Style/Documentation
