Method: BinData::Base#to_hex

Defined in:
lib/bindata/base.rb

#to_hex(&block) ⇒ Object

Returns the hexadecimal string representation of this data object.



179
180
181
# File 'lib/bindata/base.rb', line 179

def to_hex(&block)
  to_binary_s(&block).unpack('H*')[0]
end