classic integer formatting instead of method chain

This commit is contained in:
Victor
2015-07-21 16:00:01 +03:00
parent 1971987a69
commit f56c04c442
+1 -1
View File
@@ -20,7 +20,7 @@ class ProxyServer
end
def self.format(data)
data.bytes.map { |b| b.to_s(16).rjust(2, '0') }.join(' ')
data.bytes.map { |b| "%02x" % b }.join(' ')
end
module Frontend