Sha256: 8965cd0865491be9af6248f8a5de9a5671d57b59336c7334f974293175e81076

Contents?: true

Size: 520 Bytes

Versions: 3

Compression:

Stored size: 520 Bytes

Contents

require "fontcustom/version"
require "fontcustom/options"
require "fontcustom/error"
require "fontcustom/util"
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

3 entries across 3 versions & 1 rubygems

Version Path
fontcustom-1.0.1 lib/fontcustom.rb
fontcustom-1.0.0 lib/fontcustom.rb
fontcustom-1.0.0.pre2 lib/fontcustom.rb