Method: Integer#to_hex

Defined in:
lib/epitools/core_ext/numbers.rb

#to_hexObject

Convert the number into a hexadecimal string representation. (Identical to to_s(16), except that numbers < 16 will have a 0 in front of them.)



273
274
275
# File 'lib/epitools/core_ext/numbers.rb', line 273

def to_hex
  "%0.2x" % self
end