Class: FormKeeper::Constraint::Ascii
Instance Method Summary collapse
Instance Method Details
#validate(value, arg) ⇒ Object
101 102 103 104 105 |
# File 'lib/formkeeper.rb', line 101 def validate(value, arg) result = value =~ /^[\x21-\x7e]+$/ result = !result if !arg !!result end |