def accept?(data)
      unless @accept.empty?
        @accept.any? { |rule| test_data(data,rule) }
      else
        !@reject.any? { |rule| test_data(data,rule) }
      end
    end
def accept?(data)
      unless @accept.empty?
        @accept.any? { |rule| test_data(data,rule) }
      else
        !@reject.any? { |rule| test_data(data,rule) }
      end
    end
Creates a new Rules object.

 @param [Hash] options
   Additional options.

 @option options [Array<String, Regexp, Proc>] :accept
   The patterns to accept data with.

 @option options [Array<String, Regexp, Proc>] :reject
   The patterns to reject data with.


 Determines whether the data should be accepted or rejected.

 @return [Boolean]
   Specifies whether the given data was accepted, using the rules
   acceptance patterns.