class CoBreak::Binary
Public Class Methods
binary(dato)
click to toggle source
# File lib/cobreak/binary.rb, line 3 def self.binary(dato) return dato.unpack("B*").join('') end
hexbinary(dato)
click to toggle source
# File lib/cobreak/binary.rb, line 6 def self.hexbinary(dato) return [dato].pack("B*") end