Exception: VitaminedGems::UnknownVitamin

Inherits:
Exception
  • Object
show all
Defined in:
lib/vitamined-gems.rb

Instance Method Summary collapse

Constructor Details

#initialize(vitamin_name) ⇒ UnknownVitamin

Returns a new instance of UnknownVitamin.



25
26
27
# File 'lib/vitamined-gems.rb', line 25

def initialize(vitamin_name)
  super("Cannot find '#{vitamin_name}' vitamin")
end