class RailsHeroicon::UndefinedVariant
Public Class Methods
new(msg = "", exception_type = "custom")
click to toggle source
Calls superclass method
# File lib/rails_heroicon/errors.rb, line 3 def initialize(msg = "", exception_type = "custom") msg = msg.empty? ? "Variant should be one of #{RailsHeroicon::VARIANTS.join(", ")}" : msg @exception_type = exception_type super(msg) end