Sha256: 72840495affb80d3fcca0687cd4b4bee4b863a54fcbb1cd296cea7faefbb1137

Contents?: true

Size: 284 Bytes

Versions: 4

Compression:

Stored size: 284 Bytes

Contents

module Imb

  class CharacterPosition

    def initialize(character_index, bit_number)
      @character_index = character_index
      @bit_number = bit_number
    end

    def extract_bit_from_characters(characters)
      characters[@character_index][@bit_number]
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
USPS-intelligent-barcode-0.2.0 lib/USPS-intelligent-barcode/CharacterPosition.rb
USPS-intelligent-barcode-0.1.2 lib/USPS-intelligent-barcode/CharacterPosition.rb
USPS-intelligent-barcode-0.1.1 lib/USPS-intelligent-barcode/CharacterPosition.rb
USPS-intelligent-barcode-0.1.0 lib/USPS-intelligent-barcode/CharacterPosition.rb