Class: Laser::Cutter::CLI::PageSizes

Inherits:
Command
  • Object
show all
Defined in:
lib/laser/cutter/cli/page_sizes.rb

Overview

The page-sizes command: lists every page size a PDF can take.

Constant Summary

Constants inherited from Command

Command::BAR_WIDTH

Instance Method Summary collapse

Methods inherited from Command

finalize!, inherited, #progress, #ui

Instance Method Details

#call(units:) ⇒ void

This method returns an undefined value.

Parameters:

  • units (String) —

    "in" or "mm"



16
17
18
# File 'lib/laser/cutter/cli/page_sizes.rb', line 16

def call(units:, **)
  out.puts PageManager.new(units).all_page_sizes
end