Block level enable and disable arg checks
with_arg_checks
[true_or_false (boolean)]
Similar to use_arg_checks except only applies to code within supplied do/end block. Previous arg check value is restored after block.
Introduced in v2.0.0
|
# Turn on arg checking: use_arg_checks true play 80, cutoff: 100 with_arg_checks false do play 50, release: 3 sleep 1 play 72 end # Arg checking is re-enabled play 90 |
# Args are checked #Arg checking is now disabled # Args are not checked # Arg is not checked # Args are checked |