Converting a hex to ascii

If we have a hexadecimal value of 47 we can convert it to an ASCII the following ways:

"47".hex.chr         #=> "G"
["47"].pack['H*']    #=> "G"

Resources