Class: Blender::RSpec::SearchStub
- Inherits:
-
Object
- Object
- Blender::RSpec::SearchStub
- Defined in:
- lib/blender/rspec/stub_registry.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#return_value ⇒ Object
readonly
Returns the value of attribute return_value.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #and_return(value) ⇒ Object
-
#initialize(type, opts) ⇒ SearchStub
constructor
A new instance of SearchStub.
Constructor Details
#initialize(type, opts) ⇒ SearchStub
Returns a new instance of SearchStub.
24 25 26 27 |
# File 'lib/blender/rspec/stub_registry.rb', line 24 def initialize(type, opts) @type = type @opts = opts end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
23 24 25 |
# File 'lib/blender/rspec/stub_registry.rb', line 23 def opts @opts end |
#return_value ⇒ Object (readonly)
Returns the value of attribute return_value.
23 24 25 |
# File 'lib/blender/rspec/stub_registry.rb', line 23 def return_value @return_value end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
23 24 25 |
# File 'lib/blender/rspec/stub_registry.rb', line 23 def type @type end |
Instance Method Details
#and_return(value) ⇒ Object
29 30 31 |
# File 'lib/blender/rspec/stub_registry.rb', line 29 def and_return(value) @return_value = value end |