Method: RSpec::Core::SharedExampleGroup::TopLevelDSL.expose_globally!

Defined in:
lib/rspec/core/shared_example_group.rb

.expose_globally!void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Adds the top level DSL methods to Module and the top level binding.



126
127
128
129
130
# File 'lib/rspec/core/shared_example_group.rb', line 126

def self.expose_globally!
  return if exposed_globally?
  Core::DSL.change_global_dsl(&definitions)
  @exposed_globally = true
end