Exception: Mgmg::InvalidMaterialError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ InvalidMaterialError

Returns a new instance of InvalidMaterialError.



96
97
98
99
# File 'lib/mgmg/utils.rb', line 96

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

Instance Attribute Details

#materialObject

Returns the value of attribute material.



100
101
102
# File 'lib/mgmg/utils.rb', line 100

def material
  @material
end