def ranges_to_unicode(ranges)
      result = []
      ranges.each do |range|
        if range.is_a? Integer # Small hack to increase data compression
          result << hex_to_unicode(range.to_s(16))
        else
          range.each { |num| result << hex_to_unicode(num.to_s(16)) }
        end
      end
      result
    end
def ranges_to_unicode(ranges)
      result = []
      ranges.each do |range|
        if range.is_a? Integer # Small hack to increase data compression
          result << hex_to_unicode(range.to_s(16))
        else
          range.each { |num| result << hex_to_unicode(num.to_s(16)) }
        end
      end
      result
    end
TODO: Document example input/output of this method
 It's pretty simple, but this code is a little confusing!!