Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/bytes.rb
Instance Method Summary collapse
- #bin_to_hex ⇒ Object (also: #btoh, #to_hex)
-
#hex_to_bin ⇒ Object
(also: #htob)
note: built-in String#hex returns string converted to Integer - same as String.to_i(16) !!!!.
Instance Method Details
#bin_to_hex ⇒ Object Also known as: btoh, to_hex
123 |
# File 'lib/bytes.rb', line 123 def bin_to_hex() Bytes.bin_to_hex( self ); end |
#hex_to_bin ⇒ Object Also known as: htob
note: built-in String#hex returns string converted
to Integer - same as String.to_i(16) !!!!
129 |
# File 'lib/bytes.rb', line 129 def hex_to_bin() Bytes.hex_to_bin( self ); end |