Module: EbcdicConverter
- Defined in:
- lib/ebcdic_converter.rb
Overview
This module adds one method to String that will convert the string to a signed ebcdic integer ebcdic is just the use of the last digit in a string as a signed character.
Constant Summary collapse
- EBCDICPOS =
{ 'A' => '1', 'B' => '2', 'C' => '3', 'D' => '4', 'E' => '5', 'F' => '6', 'G' => '7', 'H' => '8', 'I' => '9', '{' => '0' }
- EBCDICNEG =
{ 'J' => '1', 'K' => '2', 'L' => '3', 'M' => '4', 'N' => '5', 'O' => '6', 'P' => '7', 'Q' => '8', 'R' => '9', '}' => '0' }
- EBCDIC =
EBCDICPOS.merge(EBCDICNEG)