class RSpec::Core::SharedExampleGroupModule

def included(klass)

including example group.
Our definition evaluates the shared group block in the context of the
Ruby callback for when a module is included in another module is class.
def included(klass)
  inclusion_line = klass.metadata[:location]
  include_in klass, inclusion_line, [], nil
end