A Key is used to uniquely identify a validation rule.
Methods
Attributes
| [R] | field | |
| [R] | validation |
Public Class methods
[ show source ]
# File lib/glue/validation.rb, line 134
134: def initialize(validation, field)
135: @validation, @field = validation.to_s, field.to_s
136: end
Public Instance methods
[ show source ]
# File lib/glue/validation.rb, line 142
142: def ==(other)
143: self.validation == other.validation and self.field == other.field
144: end
[ show source ]
# File lib/glue/validation.rb, line 138
138: def hash
139: "#{@validation}-#{@field}".hash
140: end