Class: Imb::BarPosition
- Inherits:
-
Object
- Object
- Imb::BarPosition
- Defined in:
- lib/USPS-intelligent-barcode/bar_position.rb
Overview
Represents a position (one line) in the barcode. This class is internal and may change.
Internal collapse
-
#initialize(descender_character_position, ascender_character_position) ⇒ BarPosition
constructor
A new instance of BarPosition.
-
#map(characters) ⇒ BarSymbol
Given an array of characters, return a symbol for this barcode position.
Constructor Details
#initialize(descender_character_position, ascender_character_position) ⇒ BarPosition
Returns a new instance of BarPosition.
13 14 15 16 |
# File 'lib/USPS-intelligent-barcode/bar_position.rb', line 13 def initialize(descender_character_position, ascender_character_position) @descender_character_position = descender_character_position @ascender_character_position = ascender_character_position end |