Exception: Mgmg::InvalidSmithError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mgmg/utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#recipeObject

Returns the value of attribute recipe.



93
94
95
# File 'lib/mgmg/utils.rb', line 93

def recipe
  @recipe
end