Exception: FoxTail::InvalidIconSetVariant

Inherits:
Error
  • Object
show all
Defined in:
lib/fox_tail/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(icon_set, variant, msg = nil) ⇒ InvalidIconSetVariant

Returns a new instance of InvalidIconSetVariant.



52
53
54
55
56
# File 'lib/fox_tail/errors.rb', line 52

def initialize(icon_set, variant, msg = nil)
  @icon_set = icon_set
  @variant = variant
  super(msg || "Unknown variant #{variant} for #{icon_set} icon set.")
end

Instance Attribute Details

#icon_setObject (readonly)

Returns the value of attribute icon_set.



50
51
52
# File 'lib/fox_tail/errors.rb', line 50

def icon_set
  @icon_set
end

#variantObject (readonly)

Returns the value of attribute variant.



50
51
52
# File 'lib/fox_tail/errors.rb', line 50

def variant
  @variant
end