new (DataMapper::Validate::LengthValidator)

    # File lib/dm-validations/length_validator.rb, line 10
          def initialize(field_name, options)
            super
            @field_name = field_name
            @options = options

            @min = options[:minimum] || options[:min]
            @max = options[:maximum] || options[:max]
            @equal = options[:is] || options[:equals]
            @range = options[:within] || options[:in]

            @validation_method ||= :range if @range
            @validation_method ||= :min if @min && @max.nil?
            @validation_method ||= :max if @max && @min.nil?
            @validation_method ||= :equals unless @equal.nil?
          end