Exception: Fontist::Errors::UnsupportedFontError

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) ⇒ UnsupportedFontError

Returns a new instance of UnsupportedFontError.



114
115
116
117
118
119
120
121
122
# File 'lib/fontist/errors.rb', line 114

def initialize(font)
  msg = "    Font '\#{font}' not found locally nor available in the Fontist formula repository.\n    Perhaps it is available at the latest Fontist formula repository.\n    You can update the formula repository using the command `fontist update` and try again.\n  MSG\n\n  super(msg, font)\nend\n".chomp