Class: Synthesis::Expectation::Singleton
Instance Attribute Summary
Attributes inherited from Expectation
#args, #method, #receiver
Instance Method Summary
collapse
Methods inherited from Expectation
#==, #add_return_values, #add_test_subject, #arg_types, #eql?, #explode, #initialize, #invoked!, #invoked?, #record_invocations, #return_value_type, #return_values_defined?, #test_subject
Methods included from Logging
#silence!, #speak!
Instance Method Details
83
84
85
|
# File 'lib/synthesis/expectation.rb', line 83
def hash
(@receiver.name.hash * 23) + @method.hash
end
|
79
80
81
|
# File 'lib/synthesis/expectation.rb', line 79
def meta_receiver
@receiver.__metaclass__
end
|
#receiver_class ⇒ Object
87
88
89
|
# File 'lib/synthesis/expectation.rb', line 87
def receiver_class
@receiver
end
|
#receiver_repr ⇒ Object
91
92
93
|
# File 'lib/synthesis/expectation.rb', line 91
def receiver_repr
@receiver.name
end
|