Module: LabelPrinter::Label::MultipleDoubleLabels
- Includes:
- MultipleLabels
- Included in:
- BasePlateDouble
- Defined in:
- lib/label_printer/label/multiple_double_labels.rb
Instance Attribute Summary
Attributes included from MultipleLabels
Instance Method Summary collapse
Methods included from MultipleLabels
Instance Method Details
#create_labels ⇒ Object
8 9 10 |
# File 'lib/label_printer/label/multiple_double_labels.rb', line 8 def create_labels [].tap { |l| assets.each { |asset| count.times { l.push(*double_label(asset)) } } } end |
#double_label(asset) ⇒ Object
12 13 14 |
# File 'lib/label_printer/label/multiple_double_labels.rb', line 12 def double_label(asset) [build_label(asset), build_extra_label(asset)] end |