Hexdecode (inverse hexencode) in Ruby

I recently needed an inverse of Digest.hexencode in Ruby, and after some experimenting arrived at this one-liner:

hex_string.scan( /../ ).map { |n| n.to_i( 16 ) }.pack( "U*" )