Method: Barcode1DTools::Matrix2of5.can_encode?
- Defined in:
- lib/barcode1dtools/matrix2of5.rb
.can_encode?(value) ⇒ Boolean
Returns true if the value is encodable in this symbology. Matrix2of5 can encode digits.
103 104 105 |
# File 'lib/barcode1dtools/matrix2of5.rb', line 103 def can_encode?(value) value.to_s =~ /\A[0-9]+\z/ end |