Top Level Namespace

Defined Under Namespace

Modules: Sequel

Constant Summary collapse

SYM_TO_PROC_ARITY =

Before Ruby 3, the arity of the proc created by ‘&:sym` was -1. In Ruby 3, this was changed to -2 to reflect that the proc requires the receiver the method should be called on.

See: bugs.ruby-lang.org/issues/16260 And: stackoverflow.com/a/70100210

RUBY_VERSION < '3' ? -1 : -2