Exception: EyeOfNewt::InvalidIngredient
- Inherits:
-
EyeOfNewtError
- Object
- StandardError
- EyeOfNewtError
- EyeOfNewt::InvalidIngredient
- Defined in:
- lib/eye_of_newt/errors.rb
Instance Attribute Summary collapse
-
#original ⇒ Object
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(line, original = nil) ⇒ InvalidIngredient
constructor
A new instance of InvalidIngredient.
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
#original ⇒ Object
Returns the value of attribute original.
17 18 19 |
# File 'lib/eye_of_newt/errors.rb', line 17 def original @original end |