-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend Contracts for raised and thrown objects #263
Comments
Hi @egonSchiele Examples:
Some notes
|
md-work
changed the title
extend Contracts for raise and rescue objects
extend Contracts for raised and thrown objects
Aug 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this really great gem!
It helps a lot checking the types of objects being send up and down the stack trough method calls and returns. Sadly there's still no way to check the type of objects being send trough the stack by the Ruby
raise
andthrow
commands.I'm thinking about something similar to
throws Exception
in Java.(sure this isn't Java and the checking can only be done dynamically, not statically)
What do you think about adding such an feature to Contracts?
See also: #193
The text was updated successfully, but these errors were encountered: