I'm completely open to name changes. I just picked some reasonable names to start with.
It doesn't mention it in Issue #6 but we need some way to get the actual result or , otherwise all you have is the proxy. I chose to go with a method called __object__. I'm not thrilled with this name but I also didn't want to pick something that might exist on the wrapped object. Could go with something like __value__ as well.
I also gave it the option to accept a specific type of null object for the default.
As requested in Issue #6.
I'm completely open to name changes. I just picked some reasonable names to start with.
It doesn't mention it in Issue #6 but we need some way to get the actual result or, otherwise all you have is the proxy. I chose to go with a method called
__object__
. I'm not thrilled with this name but I also didn't want to pick something that might exist on the wrapped object. Could go with something like__value__
as well.I also gave it the option to accept a specific type of null object for the default.
Usage: