Exception: Fontist::Errors::ManualFontError

Inherits:
FontError show all
Defined in:
lib/fontist/errors.rb

Instance Attribute Summary

Attributes inherited from FontError

#font, #style

Instance Method Summary collapse

Methods inherited from FontError

#name

Constructor Details

#initialize(font, formula) ⇒ ManualFontError

Returns a new instance of ManualFontError.



106
107
108
109
110
# File 'lib/fontist/errors.rb', line 106

def initialize(font, formula)
  msg = "'#{font}' font is missing.\n\n#{formula.instructions}"

  super(msg, font)
end