class Fontist::Errors::FontError

Attributes

font[R]
style[R]

Public Class Methods

new(msg, font = nil, style = nil) click to toggle source
Calls superclass method
# File lib/fontist/errors.rb, line 72
def initialize(msg, font = nil, style = nil)
  @font = font
  @style = style

  super(msg)
end

Public Instance Methods

name() click to toggle source
# File lib/fontist/errors.rb, line 79
def name
  messages = []
  messages << "Font name: '#{@font}'"
  messages << "Style: '#{@style}'" if @style
  messages.join("; ")
end