Module: Fontcustom
- Defined in:
- lib/fontcustom.rb,
lib/fontcustom/cli.rb,
lib/fontcustom/util.rb,
lib/fontcustom/error.rb,
lib/fontcustom/options.rb,
lib/fontcustom/version.rb,
lib/fontcustom/watcher.rb,
lib/fontcustom/generator/font.rb,
lib/fontcustom/generator/template.rb
Defined Under Namespace
Modules: Generator Classes: CLI, Error, Util, Watcher
Constant Summary collapse
- DEFAULT_OPTIONS =
{ :input => Dir.pwd, :output => false, # used to assign default, if necessary :config => false, :templates => %w|css preview|, :font_name => "fontcustom", :file_hash => true, :css_prefix => "icon-", :font_face_path => false, :debug => false, :verbose => true }
- DATA_MODEL =
{ :fonts => [], :templates => [], :file_name => "", :glyphs => [] }
- VERSION =
"1.0.1"
Class Method Summary collapse
-
.compile(options) ⇒ Object
Clean Ruby API to workaround Thor.
Class Method Details
.compile(options) ⇒ Object
Clean Ruby API to workaround Thor
12 13 14 15 16 17 18 |
# File 'lib/fontcustom.rb', line 12 def compile() opts = Fontcustom::Util. Fontcustom::Generator::Font.start [opts] Fontcustom::Generator::Template.start [opts] rescue Fontcustom::Error => e puts "ERROR: #{e.}" end |