Sha256: 456f5760c891c5e5935990d03e8d119cc34d1c7566402c3a871ba3ca17027eb0

Contents?: true

Size: 340 Bytes

Versions: 14

Compression:

Stored size: 340 Bytes

Contents

class ProconBypassMan::Processor
  # @return [String] binary
  def initialize(binary)
    @binary = binary
  end

  # @return [String] 加工後の入力データ
  def process
    unless @binary[0] == "\x30".b
      return @binary
    end

    procon = ProconBypassMan::Procon.new(@binary)
    procon.apply!
    procon.to_binary
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
procon_bypass_man-0.1.15 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.14 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.13 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.12 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.11 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.10 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.9 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.8 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.7 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.6 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.5 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.4 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.3 lib/procon_bypass_man/processor.rb
procon_bypass_man-0.1.2 lib/procon_bypass_man/processor.rb