Exception: Mgmg::InvalidCharacterError
- Inherits:
-
StandardError
- Object
- StandardError
- Mgmg::InvalidCharacterError
- Defined in:
- lib/mgmg/utils.rb
Instance Attribute Summary collapse
-
#wchar ⇒ Object
Returns the value of attribute wchar.
Instance Method Summary collapse
-
#initialize(match) ⇒ InvalidCharacterError
constructor
A new instance of InvalidCharacterError.
Constructor Details
#initialize(match) ⇒ InvalidCharacterError
Returns a new instance of InvalidCharacterError.
81 82 83 84 |
# File 'lib/mgmg/utils.rb', line 81 def initialize(match) @wchar = match[0] super("`#{@wchar}' is not a valid character for recipes") end |
Instance Attribute Details
#wchar ⇒ Object
Returns the value of attribute wchar.
85 86 87 |
# File 'lib/mgmg/utils.rb', line 85 def wchar @wchar end |