Module FormValidator::Filters
In: formvalidator.rb

Methods

Public Instance methods

Remove non alphanumerical characters from the input.

Calls the capitalize method on its input.

Extract from its input a valid decimal number.

Remove non digits characters from the input.

Extract from its input a valid number to express dollars like currency.

Calls the downcase method on its input.

Extract from its input a valid integer number.

Extract from its input a valid negative decimal number.

Extract from its input a valid negative integer number.

Filters out characters which aren’t valid for an phone number. (Only accept digits [0-9], space, comma, minus, parenthesis, period and pound.

Extract from its input a valid positive decimal number.

Extract from its input a valid positive integer number.

Quotes special characters.

Transforms shell glob wildcard (*) to the SQL like wildcard (%).

Runs of white space are replaced by a single space.

Remove white space at the front and end of the fields.

Calls the upcase method on its input.

[Validate]