class Rule

    # A rule for checking the length of a value
    class MaximumLength < self
      DEFAULT_MESSAGE = '%{attribute} is too long'.freeze