Module: Zpl
- Defined in:
- lib/zpl-transformer.rb,
lib/zpl-transformer/font.rb,
lib/zpl-transformer/reader.rb,
lib/zpl-transformer/command.rb,
lib/zpl-transformer/version.rb,
lib/zpl-transformer/transformer/base.rb,
lib/zpl-transformer/transformer/pipeline.rb,
lib/zpl-transformer/transformer/base_scaler.rb
Defined Under Namespace
Modules: Transformer Classes: Command, Font, Reader
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
-
.uniq_commands(zpl_content) ⇒ Object
Returns the list of unique commands used in the given ZPL.
Class Method Details
.uniq_commands(zpl_content) ⇒ Object
Returns the list of unique commands used in the given ZPL.
8 9 10 11 12 13 14 |
# File 'lib/zpl-transformer.rb', line 8 def self.uniq_commands(zpl_content) uniq_cmds = Set.new Reader.new(zpl_content).each_command do |cmd| uniq_cmds << cmd.name end uniq_cmds.to_a end |