Sha256: e5678822e471d27f4398a3249bfe3d9d8bc5422b7303aa1d83eab388917a0e09

Contents?: true

Size: 182 Bytes

Versions: 7

Compression:

Stored size: 182 Bytes

Contents

module CoBreak
  class Binary
    def self.binary(dato)
      return dato.unpack("B*").join('')
    end
    def self.hexbinary(dato)
      return [dato].pack("B*")
    end
  end
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
cobreaktws-1.0.4 lib/cobreak/binary.rb
cobreaktw-1.0.4 lib/cobreak/binary.rb
cobreakk-1.0.4 lib/cobreak/binary.rb
cobreak-1.0.2 lib/cobreak/binary.rb
cobreak-1.0.1 lib/cobreak/binary.rb
cobreak-0.0.9 lib/cobreak/binary.rb
cobreak-0.0.8 lib/cobreak/binary.rb