Class: FormKeeper::Constraint::Alpha
Instance Method Summary collapse
Instance Method Details
#validate(value, arg) ⇒ Object
209 210 211 212 213 |
# File 'lib/formkeeper.rb', line 209 def validate(value, arg) result = value =~ /^[[:alpha:]]+$/ result = !result if !arg !!result end |