class RSpec::Core::SharedExampleGroup::Registry
def add(context, name, *metadata_args, &block)
def add(context, name, *metadata_args, &block) ensure_block_has_source_location(block) { CallerFilter.first_non_rspec_line } if valid_name?(name) warn_if_key_taken context, name, block shared_example_groups[context][name] = block else metadata_args.unshift name end return if metadata_args.empty? RSpec.configuration.include SharedExampleGroupModule.new(name, block), *metadata_args end