ruru
ruru copied to clipboard
Protect send: a panic safe feature for Ruby interaction
This is forked off of the eval PR. After ruby-sys is updated I'll fix the Cargo.toml
file.
Provides
-
Object#protect_send
->Result<AnyObject, AnyObject>
-
Object#protect_public_send
->Result<AnyObject, AnyObject>
Methods can be called with these just like with send except instead of crashing when Ruby raises/throws an exception we can now handle the exception on the Err
path.
TODO
- [ ] Wait for
ruby-sys
update and updateCargo.toml
@danielpclark Exciting! Do you need a help with this? Are we still waiting for ruby-sys
?
Thanks, I don't need help, and yes we're waiting for ruby-sys
.
In the mean time I've got all my PRs here available to use from the playground
branch of my fork https://github.com/danielpclark/ruru/tree/playground . Since some of my gem releases for FasterPath depend on it I won't be deleting that branch ever.