Sha256: cc86ef390c6ab214129337d06bdb3c8ad8000ceb903dbbcd21b9cc032ca3cbdf

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

require 'fontcustom/version'
require 'fontcustom/generator'
require 'fontcustom/watcher'

module Fontcustom
  # Both .compile and .watch take the following arguments:
  #
  # @param [String] the input dir
  # @param [String] the output dir (optional, defaults to fontcustom/ adjacent to the input dir)
  # @param [Hash] options for Thor (not working)
  def compile(*args)
    config = args.last.is_a?(::Hash) ? args.pop : {}
    Fontcustom::Generator.start(args, config)
  end

  def watch(*args)
    Fontcustom::Watcher.watch(*args)
  end

  def stop
    Fontcustom::Watcher.stop
  end

  module_function :compile, :watch, :stop
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fontcustom-0.0.2 lib/fontcustom.rb
fontcustom-0.0.1 lib/fontcustom.rb