Class: Booth::Syntaxes::Username

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

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



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

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