Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Define any base conversion with any identifier for each value. Let the fun begin!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
README
BaseCustom
by Daniel P. Clark

Inspired by:
* base62 by "JT Zemp" and contributors "Saadiq Rodgers-King", "Derrick Camerino"

Version 0.1.3 created from assistance and advice by my father Robert Clark.

Description
* Define any base conversion with any identifier for each value.

    require 'basecustom'
    
    base2 = BaseCustom.new('01')
    base2.base('00001')
    => 1
    base2.base('100110101')
    => 309
    base2.base(340)
    => "101010100"
    base2.base(0xF45)
    => "111101000101"
    
    baseABC = BaseCustom.new('ABC')
    baseABC.base('ABC')
    => 5
    baseABC.base(123)
    => "BBBCA"
Something went wrong with that request. Please try again.