Exception: Mgmg::InvalidMaterialError
- Inherits:
-
StandardError
- Object
- StandardError
- Mgmg::InvalidMaterialError
- Defined in:
- lib/mgmg/utils.rb
Instance Attribute Summary collapse
-
#material ⇒ Object
Returns the value of attribute material.
Instance Method Summary collapse
-
#initialize(str) ⇒ InvalidMaterialError
constructor
A new instance of InvalidMaterialError.
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
#material ⇒ Object
Returns the value of attribute material.
100 101 102 |
# File 'lib/mgmg/utils.rb', line 100 def material @material end |