Module: Radix::BASE

Defined in:
lib/radix/base.rb

Overview

Namespace for common bases defined as reusable constants.

Constant Summary

B10 =

Array of chars 0 - 9

('0'..'9').to_a
B12 =

Array of chars 0 - 9 + X + E

B10 + ['X', 'E']
B16 =

Array of chars 0 - 9 + A - F

B10 + ('A'..'F').to_a
B36 =

Array of chars 0 - 9 + A - Z

B10 + ('A'..'Z').to_a
B60 =

Array of chars 0 - 9 + A - Z + a - x

B36 + ('a'..'x').to_a
B62 =

Array of chars 0 - 9 + A - Z + a - z

B36 + ('a'..'z').to_a
HEX =

Array of chars 0 - 9 + a - f

B10 + ('a'..'f').to_a