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.



73
74
75
76
# File 'lib/mgmg/utils.rb', line 73

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.



77
78
79
# File 'lib/mgmg/utils.rb', line 77

def wchar
  @wchar
end