class Fontist::Import::Files::CollectionFile
Attributes
Public Class Methods
Source
# File lib/fontist/import/files/collection_file.rb, line 11 def initialize(path, name_prefix: nil) @path = path @name_prefix = name_prefix @fonts = read @extension = detect_extension end
Public Instance Methods
Source
# File lib/fontist/import/files/collection_file.rb, line 18 def filename "#{File.basename(@path, '.*')}.#{@extension}" end
Source
# File lib/fontist/import/files/collection_file.rb, line 22 def source_filename File.basename(@path) unless filename == File.basename(@path) end