lib/aequitas/rule/format/regexp.rb in aequitas-0.0.1 vs lib/aequitas/rule/format/regexp.rb in aequitas-0.0.2
- old
+ new
@@ -2,17 +2,15 @@
require 'aequitas/rule/format'
module Aequitas
class Rule
- module Format
- class Regexp < Rule
+ class Format
+ class Regexp < Format
- include Format
+ equalize_on *superclass.equalizer.keys + [:format_name]
- equalize_on *(superclass.equalizer.keys + [:format, :format_name])
-
attr_reader :format_name
def initialize(attribute_name, options = {})
super
@@ -37,8 +35,8 @@
# [ :invalid, attribute_name ]
# end
# end
end # class Regexp
- end # module Format
+ end # class Format
end # class Rule
end # module Aequitas