Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/bytes.rb

Instance Method Summary collapse

Instance Method Details

#bin_to_hexObject 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_binObject 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