class CutePrint::LocationLabel
@api private
Constants
- FORMATS
Public Class Methods
make(format, location)
click to toggle source
# File lib/cute_print/location_label.rb, line 14 def self.make(format, location) klass = FORMATS[format] unless klass raise ArgumentError, "Unknown location format: #{format.inspect}" end klass.new(location) end