Open avdi opened 11 years ago
Wrap myvalue and intercept each method call, wrapping the return value. If ANY call returns nil, replace it with a null object:
myvalue
SomeConversionFunc(myvalue).foo.bar.baz # => <null>
Counterpoint: without Demeter violations this wouldn't be needed ;-)
Wrap
myvalue
and intercept each method call, wrapping the return value. If ANY call returns nil, replace it with a null object:Counterpoint: without Demeter violations this wouldn't be needed ;-)