# File lib/dm-validations/validators/generic_validator.rb, line 37 def initialize(field_name, options = {}) @field_name = field_name @options = DataMapper::Ext::Hash.except(options, :if, :unless) @if_clause = options[:if] @unless_clause = options[:unless] @humanized_field_name = DataMapper::Inflector.humanize(@field_name) end