Class: FormKeeper::Constraint::AsciiSpace
- Defined in:
- lib/formkeeper.rb
Instance Method Summary collapse
Instance Method Details
#validate(value, arg) ⇒ Object
109 110 111 112 113 |
# File 'lib/formkeeper.rb', line 109 def validate(value, arg) result = value =~ /^[\x20-\x7e]+$/ result = !result if !arg !!result end |