Enhancement Request to Whitelist Ruby Method #clamp
I want to parse user input (via email) to get a number, but I want to account for fat-finger typing and ensure the number remains within a valid range. I came accross the Ruby method clamp and would love for this to be whitelisted when possible.
Georgia Ria
Enhancement Request to Whitelist Ruby Method #clamp
I want to parse user input (via email) to get a number, but I want to account for fat-finger typing and ensure the number remains within a valid range. I came accross the Ruby method clamp and would love for this to be whitelisted when possible.
https://blog.bigbinary.com/2016/12/13/ruby-2-4-adds-comparable-clamp-method.html