Class: Booth::Syntaxes::Username
- Inherits:
-
Object
- Object
- Booth::Syntaxes::Username
- Includes:
- Logging, Calls
- Defined in:
- lib/booth/syntaxes/username.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/booth/syntaxes/username.rb', line 11 def call # log { "Checking username #{input.inspect} for valid syntax..." } check_blank.on_success { check_too_short } .on_success { check_too_long } .on_success { check_starts_with_letter } .on_success { check_characters } end |