Sha256: f66e54a113308193cd3af622db6718681e978de2a8c43b99b119b6c98164f11e

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

require "fontcustom/version"
require "fontcustom/options"
require "fontcustom/error"
require "fontcustom/util"
require "fontcustom/actions"
require "fontcustom/generator/font"
require "fontcustom/generator/template"

module Fontcustom
  ##
  # Clean Ruby API to workaround Thor
  def compile(options)
    opts = Fontcustom::Util.collect_options options
    Fontcustom::Generator::Font.start [opts]
    Fontcustom::Generator::Template.start [opts]
  rescue Fontcustom::Error => e
    puts "ERROR: #{e.message}"
  end

  module_function :compile
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fontcustom-1.1.0.pre lib/fontcustom.rb