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