Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/noms/command/auth/identity.rb
Instance Method Summary collapse
Instance Method Details
#to_hex ⇒ Object
16 17 18 |
# File 'lib/noms/command/auth/identity.rb', line 16 def to_hex self.unpack('C*').map { |n| '%02x' % n }.join('') end |