Method: UnicodeUtils::Codepoint#hexbytes

Defined in:
lib/unicode_utils/codepoint.rb

#hexbytesObject

Get the bytes used to encode this code point in UTF-8, hex-formatted.

Codepoint.new(0xe4).hexbytes => "c3,a4"


55
56
57
# File 'lib/unicode_utils/codepoint.rb', line 55

def hexbytes
  to_s.bytes.map { |b| sprintf("%02x", b) }.join(",")
end