Class: RSpec::Mockbidden::ForbiddanceTarget
- Inherits:
-
Object
- Object
- RSpec::Mockbidden::ForbiddanceTarget
- Defined in:
- lib/rspec/mockbidden/methods.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#matcher ⇒ Object
readonly
Returns the value of attribute matcher.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
- #from(matcher) ⇒ Object
-
#initialize(target) ⇒ ForbiddanceTarget
constructor
A new instance of ForbiddanceTarget.
- #targets_any_instance? ⇒ Boolean
Constructor Details
#initialize(target) ⇒ ForbiddanceTarget
Returns a new instance of ForbiddanceTarget.
8 9 10 11 |
# File 'lib/rspec/mockbidden/methods.rb', line 8 def initialize(target) @target = target @matcher = nil end |
Instance Attribute Details
#matcher ⇒ Object (readonly)
Returns the value of attribute matcher.
6 7 8 |
# File 'lib/rspec/mockbidden/methods.rb', line 6 def matcher @matcher end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
6 7 8 |
# File 'lib/rspec/mockbidden/methods.rb', line 6 def target @target end |
Instance Method Details
#from(matcher) ⇒ Object
13 14 15 |
# File 'lib/rspec/mockbidden/methods.rb', line 13 def from(matcher) @matcher = matcher end |
#targets_any_instance? ⇒ Boolean
17 18 19 |
# File 'lib/rspec/mockbidden/methods.rb', line 17 def targets_any_instance? false end |