class XSpec::Evaluator::Doubles::Reference
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.
Public Class Methods
new(klass)
click to toggle source
# File lib/xspec/evaluators.rb, line 239 def initialize(klass) @klass = klass end
Public Instance Methods
to_s()
click to toggle source
# File lib/xspec/evaluators.rb, line 246 def to_s @klass.to_s end
validate_call!(args)
click to toggle source
# File lib/xspec/evaluators.rb, line 243 def validate_call!(args) end