Symbol procs as groups don't work as expected. #405
Consider these two groups:
The first group works as expected. However, the second group raises an exception about passing the wrong number of arguments to
I did some digging and the problem appears to be at https://github.com/jnunemaker/flipper/blob/master/lib/flipper/types/group.rb#L17.
Notably, the arity of the symbol proc is
With all of that said, I'm not very familiar with arity checking in Ruby. However, it seems that checking the absolute value of the arity would work in this situation. If someone else thinks this is a good idea, I'd be more than happy to make the (tiny) PR for this.