Exception: EyeOfNewt::InvalidIngredient

Inherits:
EyeOfNewtError show all
Defined in:
lib/eye_of_newt/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line, original = nil) ⇒ InvalidIngredient

Returns a new instance of InvalidIngredient.



18
19
20
21
# File 'lib/eye_of_newt/errors.rb', line 18

def initialize(line, original=nil)
  super(%Q{Could not parse "#{line}" as ingredient})
  self.original = original
end

Instance Attribute Details

#originalObject

Returns the value of attribute original.



17
18
19
# File 'lib/eye_of_newt/errors.rb', line 17

def original
  @original
end