Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/ruby-ext.rb
Overview
Copyright © 2011 Jean-Michel Esnault. Released under the same license as Ruby
Instance Method Summary collapse
- #to_shex(*args) ⇒ Object (also: #to_s_hexlify)
Instance Method Details
#to_shex(*args) ⇒ Object Also known as: to_s_hexlify
6 7 8 |
# File 'lib/ruby-ext.rb', line 6 def to_shex(*args) self.respond_to?(:encode) ? self.encode(*args).unpack('H*')[0] : "" end |