class RSpec::Core::Configuration

def expose_dsl_globally=(value)

Default: true
remove the DSL.
object. It will be set automatically but you can override it to
Use this to expose the core RSpec DSL via `Module` and the `main`
def expose_dsl_globally=(value)
  if value
    Core::DSL.expose_globally!
    Core::SharedExampleGroup::TopLevelDSL.expose_globally!
  else
    Core::DSL.remove_globally!
    Core::SharedExampleGroup::TopLevelDSL.remove_globally!
  end
end