Exception: Mgmg::InvalidSmithError
- Inherits:
-
StandardError
- Object
- StandardError
- Mgmg::InvalidSmithError
- Defined in:
- lib/mgmg/utils.rb
Instance Attribute Summary collapse
-
#recipe ⇒ Object
Returns the value of attribute recipe.
Instance Method Summary collapse
-
#initialize(str) ⇒ InvalidSmithError
constructor
A new instance of InvalidSmithError.
Constructor Details
#initialize(str) ⇒ InvalidSmithError
Returns a new instance of InvalidSmithError.
89 90 91 92 |
# File 'lib/mgmg/utils.rb', line 89 def initialize(str) @recipe = str super("`#{@recipe}' is not a valid recipe for smithing") end |
Instance Attribute Details
#recipe ⇒ Object
Returns the value of attribute recipe.
93 94 95 |
# File 'lib/mgmg/utils.rb', line 93 def recipe @recipe end |