Class: Blender::RSpec::SearchStub

Inherits:
Object
  • Object
show all
Defined in:
lib/blender/rspec/stub_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optsObject (readonly)

Returns the value of attribute opts.



23
24
25
# File 'lib/blender/rspec/stub_registry.rb', line 23

def opts
  @opts
end

#return_valueObject (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

#typeObject (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