Created
April 10, 2019 04:22
-
-
Save AdrianDeAnda/34e2d80c0e376f817452a1cae01a08bc to your computer and use it in GitHub Desktop.
Library extension to help in read/write action on spreadsheets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Numeric | |
| Alph = ('A'..'Z').to_a | |
| def alph | |
| s, q = '', self | |
| until q.zero? | |
| q, r = (q - 1).divmod(26) | |
| s.prepend(Alph[r]) | |
| end | |
| s | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment