Class: XSpec::Evaluator::Doubles::Reference
- Inherits:
-
Object
- Object
- XSpec::Evaluator::Doubles::Reference
- Defined in:
- lib/xspec/evaluators.rb
Overview
A reference can be thought of as a “backing object” for a double. It provides an API to validate that a method being expected actually exists - the implementation is different for the different types of doubles.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(klass) ⇒ Reference
constructor
A new instance of Reference.
- #to_s ⇒ Object
- #validate_call!(args) ⇒ Object
Constructor Details
#initialize(klass) ⇒ Reference
Returns a new instance of Reference.
247 248 249 |
# File 'lib/xspec/evaluators.rb', line 247 def initialize(klass) @klass = klass end |
Instance Method Details
#to_s ⇒ Object
254 255 256 |
# File 'lib/xspec/evaluators.rb', line 254 def to_s @klass.to_s end |
#validate_call!(args) ⇒ Object
251 252 |
# File 'lib/xspec/evaluators.rb', line 251 def validate_call!(args) end |