Module: Evilution::Integration::RSpec::StateGuard::Internals Private
- Defined in:
- lib/evilution/integration/rspec/state_guard/internals.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .config_ivar(name) ⇒ Object private
- .world_ivar(name) ⇒ Object private
Class Method Details
.config_ivar(name) ⇒ Object
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.
15 16 17 18 |
# File 'lib/evilution/integration/rspec/state_guard/internals.rb', line 15 def config_ivar(name) config = ::RSpec.configuration config.instance_variable_defined?(name) ? config.instance_variable_get(name) : nil end |
.world_ivar(name) ⇒ Object
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.
10 11 12 13 |
# File 'lib/evilution/integration/rspec/state_guard/internals.rb', line 10 def world_ivar(name) world = ::RSpec.world world.instance_variable_defined?(name) ? world.instance_variable_get(name) : nil end |