class RSpec::Core::SharedExampleGroupInclusionStackFrame

def self.with_frame(name, location)

Other tags:
    Private: -
def self.with_frame(name, location)
  current_stack = shared_example_group_inclusions
  if current_stack.any? { |frame| frame.shared_group_name == name }
    raise ArgumentError, "can't include shared examples recursively"
  else
    current_stack << new(name, location)
    yield
  end
ensure
  current_stack.pop
end