Exception: Menuella::FoodSafety::UnknownIconError

Inherits:
Error
  • Object
show all
Defined in:
lib/menuella/food_safety.rb

Overview

The name has no glyph. FoodSafety.icon_names lists the ones that do.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnknownIconError

Returns a new instance of UnknownIconError.



46
47
48
49
# File 'lib/menuella/food_safety.rb', line 46

def initialize(name)
  @name = name
  super("no icon named #{name.inspect}")
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



44
45
46
# File 'lib/menuella/food_safety.rb', line 44

def name
  @name
end