Skip to content

Commit

Permalink
Added a generic validator class with a validate method. All specific …
Browse files Browse the repository at this point in the history
…validator will inehrit code from this class.
  • Loading branch information
thesp0nge committed Feb 15, 2011
1 parent f822d91 commit 17a10ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/validator/generic_validator.rb
Expand Up @@ -3,6 +3,10 @@ module Owasp
module Esapi
module Validator
class GenericValidator

attr_accessor :matcher


def validate(string, pattern)
r = Regexp.new(pattern)

Expand Down

0 comments on commit 17a10ed

Please sign in to comment.