class Fontist::Import::Files::CollectionFile

Attributes

fonts[R]

Public Class Methods

new(path) click to toggle 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

filename() click to toggle source
# File lib/fontist/import/files/collection_file.rb, line 17
def filename
  File.basename(@path, ".*") + "." + @extension
end
source_filename() click to toggle source
# File lib/fontist/import/files/collection_file.rb, line 21
def source_filename
  File.basename(@path) unless filename == File.basename(@path)
end