Exception: ValidatesFormattingOf::InvalidRegularExpression

Inherits:
StandardError
  • Object
show all
Defined in:
lib/validates_formatting_of/validation.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ InvalidRegularExpression

Returns a new instance of InvalidRegularExpression.



4
5
6
# File 'lib/validates_formatting_of/validation.rb', line 4

def initialize(name)
  super("You must specify a Regexp, a proc, or a lambda for the #{name.inspect} validation.")
end