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.



81
82
83
84
# File 'lib/mgmg/utils.rb', line 81

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.



85
86
87
# File 'lib/mgmg/utils.rb', line 85

def recipe
  @recipe
end