Class: Fontist::Resources::WindowsFodResource

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/resources/windows_fod_resource.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource, options = {}) ⇒ WindowsFodResource

Returns a new instance of WindowsFodResource.



4
5
6
7
# File 'lib/fontist/resources/windows_fod_resource.rb', line 4

def initialize(resource, options = {})
  @resource = resource
  @options = options
end

Instance Method Details

#files(source_names, &block) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/fontist/resources/windows_fod_resource.rb', line 9

def files(source_names, &block)
  install_capability!

  source_names.each do |filename|
    path = File.join(system_fonts_dir, filename)
    yield path if File.exist?(path)
  end
end