# frozen_string_literal: true module ActiveMocker class MockCreator module ModulesConstants class Inspectable attr_reader :inspect def initialize(inspect) @inspect = inspect end end def modules @modules ||= begin { included: get_module_by_reference(:included_modules), extended: get_module_by_reference(:extended_modules), } end end def constants class_introspector.get_class.constants.each_with_object({}) do |v, const| c = class_introspector.get_class.const_get(v) next if [Module, Class].include?(c.class) const[v] = if /\A#