Sha256: 41f86dc0a40a6db2fc952e2e843625bf17582e6d6b0a0d36272f9ea7ea464944

Contents?: true

Size: 187 Bytes

Versions: 1

Compression:

Stored size: 187 Bytes

Contents

# frozen_string_literal: true

module MonkeyPatch
  module Integer
    # to_hex etc.
    module BaseConversions
      def to_hex
        format '0x%02x', self
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pio-0.30.2 lib/pio/monkey_patch/integer/base_conversions.rb