Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/siriproxy.rb

Instance Method Summary collapse

Instance Method Details

#to_hex(seperator = " ") ⇒ Object



6
7
8
# File 'lib/siriproxy.rb', line 6

def to_hex(seperator=" ")
  bytes.to_a.map{|i| i.to_s(16).rjust(2, '0')}.join(seperator)
end