Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/einvoice-qr-encryptor/core_ext/integer.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#to_8bit_hex_string ⇒ Object
Convert integer to 8-bit hexadecimal.
Instance Method Details
#to_8bit_hex_string ⇒ Object
Convert integer to 8-bit hexadecimal
6 7 8 |
# File 'lib/einvoice-qr-encryptor/core_ext/integer.rb', line 6 def to_8bit_hex_string to_s(16).rjust(8, '0') end |