Exception: Fontist::Errors::PlatformMismatchError
- Inherits:
-
FontError
- Object
- StandardError
- GeneralError
- FontError
- Fontist::Errors::PlatformMismatchError
- Defined in:
- lib/fontist/errors.rb
Instance Attribute Summary collapse
-
#current_platform ⇒ Object
readonly
Returns the value of attribute current_platform.
-
#required_platforms ⇒ Object
readonly
Returns the value of attribute required_platforms.
Attributes inherited from FontError
Instance Method Summary collapse
-
#initialize(font_name, required_platforms, current_platform) ⇒ PlatformMismatchError
constructor
A new instance of PlatformMismatchError.
Methods inherited from FontError
Constructor Details
#initialize(font_name, required_platforms, current_platform) ⇒ PlatformMismatchError
Returns a new instance of PlatformMismatchError.
150 151 152 153 154 155 156 |
# File 'lib/fontist/errors.rb', line 150 def initialize(font_name, required_platforms, current_platform) @required_platforms = Array(required_platforms) @current_platform = current_platform msg = (font_name) super(msg, font_name) end |
Instance Attribute Details
#current_platform ⇒ Object (readonly)
Returns the value of attribute current_platform.
148 149 150 |
# File 'lib/fontist/errors.rb', line 148 def current_platform @current_platform end |
#required_platforms ⇒ Object (readonly)
Returns the value of attribute required_platforms.
148 149 150 |
# File 'lib/fontist/errors.rb', line 148 def required_platforms @required_platforms end |