Class: RSpec::Mocks::NestedSpace
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/space.rb
Instance Attribute Summary
Attributes inherited from Space
#any_instance_mutex, #any_instance_recorders, #proxies, #proxy_mutex
Instance Method Summary collapse
- #constant_mutator_for(name) ⇒ Object
-
#initialize(parent) ⇒ NestedSpace
constructor
A new instance of NestedSpace.
- #proxies_of(klass) ⇒ Object
- #registered?(object) ⇒ Boolean
Methods inherited from Space
#any_instance_proxy_for, #any_instance_recorder_for, #any_instance_recorders_from_ancestry_of, #new_scope, #proxy_for, #register_constant_mutator, #reset_all, #superclass_proxy_for, #verify_all
Constructor Details
#initialize(parent) ⇒ NestedSpace
Returns a new instance of NestedSpace.
210 211 212 213 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/space.rb', line 210 def initialize(parent) @parent = parent super() end |
Instance Method Details
#constant_mutator_for(name) ⇒ Object
219 220 221 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/space.rb', line 219 def constant_mutator_for(name) super || @parent.constant_mutator_for(name) end |
#proxies_of(klass) ⇒ Object
215 216 217 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/space.rb', line 215 def proxies_of(klass) super + @parent.proxies_of(klass) end |
#registered?(object) ⇒ Boolean
223 224 225 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/space.rb', line 223 def registered?(object) super || @parent.registered?(object) end |