Exception: Mgmg::InvalidCharacterError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#wcharObject

Returns the value of attribute wchar.



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

def wchar
  @wchar
end