You can clone with
The and_raise method accepts either a class or an instance, but it only works with a class if the class has a zero-arg initializer.. Right now, when it receives a class with a non-zero-arg initializer the ArgumentError bubbles up, and is confusing for the end user.
and_raise should capture an ArgumentError and raise its own ArgumentError with helpful information as to how to fix the problem.
Hey, look, I'm pull request number 100!#100
Always one to grab the spotlight!
Since my error message writing skills aren't always the best, I'm sure you'll want to adjust it to make it include more "helpful information as to how to fix the problem."
More detailed error message when and_raise gets a class whose constru…
…ctor requires 1 or more args.
- #99, #100.