Class: Fontist::Resources::WindowsFodResource
- Inherits:
-
Object
- Object
- Fontist::Resources::WindowsFodResource
- Defined in:
- lib/fontist/resources/windows_fod_resource.rb
Instance Method Summary collapse
- #files(source_names, &block) ⇒ Object
-
#initialize(resource, options = {}) ⇒ WindowsFodResource
constructor
A new instance of WindowsFodResource.
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, = {}) @resource = resource @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 |