# File lib/rspec/core/example_group.rb, line 65 def self.define_shared_group_method(new_name, report_label=nil) module_eval("def self.\#{new_name}(name, *args, &customization_block)\nshared_block = world.shared_example_groups[name]\nraise \"Could not find shared example group named \\\#{name.inspect}\" unless shared_block\n\ndescribe(\"\#{report_label || \"it should behave like\"} \\\#{name}\") do\nmodule_eval_with_args *args, &shared_block\nmodule_eval &customization_block if customization_block\nend\nend\n", __FILE__, __LINE__) end