Sha256: 121696f0d62c6e284a98679bb2cbdaf9711c102efaff7168f038151aae0a0397

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

class Integer # :nodoc:
  # Convert integer to 8-bit hexadecimal
  #
  # @example
  #   100.to_8bit_hex_string #=> "00000064"
  def to_8bit_hex_string
    to_s(16).rjust(8, '0')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
einvoice-qr-encryptor-0.2.0 lib/einvoice-qr-encryptor/core_ext/integer.rb
einvoice-qr-encryptor-0.1.0 lib/einvoice-qr-encryptor/core_ext/integer.rb