Sha256: 88586d0cd0c33dc3bf9416fbb004827256fba2e6d43480f1f3a2c7f93fc70cb0

Contents?: true

Size: 435 Bytes

Versions: 26

Compression:

Stored size: 435 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

26 entries across 26 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.9 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.2.2 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.2.0 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.1.23 lib/procon_bypass_man/procon/value_objects/binary/base.rb
procon_bypass_man-0.1.22 lib/procon_bypass_man/domains/binary/base.rb
procon_bypass_man-0.1.21 lib/procon_bypass_man/domains/binary/base.rb
procon_bypass_man-0.1.20.2 lib/procon_bypass_man/domains/binary/base.rb