mirror of
https://github.com/faye/faye-websocket-ruby.git
synced 2025-11-01 13:59:13 +00:00
classic integer formatting instead of method chain
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user