Class: VerifiedDouble::MethodSignature::RspecDoubleValue
- Inherits:
-
InstanceValue
- Object
- Value
- InstanceValue
- VerifiedDouble::MethodSignature::RspecDoubleValue
- Defined in:
- lib/verified_double/method_signature/rspec_double_value.rb
Instance Attribute Summary
Attributes inherited from Value
Instance Method Summary collapse
Methods inherited from InstanceValue
Methods inherited from Value
from, #initialize, #recommended_value
Constructor Details
This class inherits a constructor from VerifiedDouble::MethodSignature::Value
Instance Method Details
#content_as_instance ⇒ Object
4 5 6 |
# File 'lib/verified_double/method_signature/rspec_double_value.rb', line 4 def content_as_instance Value.from(content_class).content_as_instance end |
#content_class ⇒ Object
8 9 10 11 |
# File 'lib/verified_double/method_signature/rspec_double_value.rb', line 8 def content_class result = content.instance_variable_get('@name') result.is_a?(Class) ? result : result.constantize end |