Method: RailsHeroicon::UndefinedIcon#initialize
- Defined in:
- lib/rails_heroicon/errors.rb
#initialize(icon = "", exception_type = "custom") ⇒ UndefinedIcon
Returns a new instance of UndefinedIcon.
12 13 14 15 16 17 |
# File 'lib/rails_heroicon/errors.rb', line 12 def initialize(icon = "", exception_type = "custom") msg = "Couldn't find icon for #{icon}" @exception_type = exception_type super(msg) end |