Exception: Mgmg::InvalidEquipClassError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ InvalidEquipClassError

Returns a new instance of InvalidEquipClassError.



103
104
105
106
# File 'lib/mgmg/utils.rb', line 103

def initialize(str)
	@equip = str
	super("`#{@equip}' is not a valid equip class name")
end

Instance Attribute Details

#equipObject

Returns the value of attribute equip.



107
108
109
# File 'lib/mgmg/utils.rb', line 107

def equip
  @equip
end