class BinData::String
Public Instance Methods
to_bytes()
click to toggle source
# File lib/pio/monkey_patch/bindata_string.rb, line 6 def to_bytes to_s.unpack('H*').pop.scan(/[0-9a-f]{2}/).map do |each| "0x#{each}" end.join(', ') end