Sha256: 7828d6f7ebe9d8ff6dae44bbfa8157c36b94c4144951ad2293c8c3ae193a53ed

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

class ProconBypassMan::Domains::Binary::Base
  # @param [String] binary
  def initialize(binary: )
    @binary = binary
  end

  # @return [String]
  def binary
    raise NotImplementedError
  end

  # @return [String]
  def raw
    binary
  end

  def unpack
    binary.unpack("H*")
  end

  # @return [ProconBypassMan::ProconReader]
  def to_procon_reader
    ProconBypassMan::ProconReader.new(binary: binary)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/procon/value_objects/binary/base.rb