Class: Booth::Syntaxes::Email

Inherits:
Object
  • Object
show all
Includes:
Logging, MethodObject
Defined in:
lib/booth/syntaxes/email.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



9
10
11
12
13
14
15
# File 'lib/booth/syntaxes/email.rb', line 9

def call
  debug { "Checking email #{input.inspect} for valid syntax..." }
  check_blank.on_success { check_too_short }
             .on_success { check_too_long }
             .on_success { check_characters }
             .on_success { check_ampersand }
end