Class: CutePrint::LocationLabel Private

Inherits:
Object
  • Object
show all
Defined in:
lib/cute_print/location_label.rb,
lib/cute_print/location_label/path.rb,
lib/cute_print/location_label/filename.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: Filename, Path

Class Method Summary collapse

Class Method Details

.make(format, location) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
17
18
19
20
# 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