I was reading through some of the Integer
bit_ methods and saw in the example:
2r10100.bit_set?(2) // returns true
What the? So reading up on the syntax page, found something new today :
r indicates ®adix / base – default 10 (decimal) if omitted. Ex: 2r binary & 16r hex. big-digit(s) vary by the radix used.
It was really exciting to find this syntax, it has already come in super handy.
2r1111 // 15
16rFF // 255
16rDEADBEEF // -559038737