Class: CutePrint::LocationLabel Private
- 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
Class Method Summary collapse
- .make(format, location) ⇒ Object private
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 |