   error_message: () ->
     @msg
 
+
 # validate length for attribute
 # @example
 #   name: length: {min : 3, max: 10}
 #   title: length : {length: 10 }
 class LengthValidator extends Validator
+  #@param [Any] value - current value
+  #@param [Object] attributes object with [mix, max, length] keys
+  #@return [Boolean]
   validate: (value, attributes) ->
     max = attributes['max'] || Number.POSITIVE_INFINITY
     min = attributes['min'] || Number.NEGATIVE_INFINITY

# @example
#   name: inclusion: {within: ["A", "B, "C"]}
class InclusionValidator extends Validator
  validate: (value, attributes) ->
    range = attributes['within'] || []
    if range.indexOf(value) > -1

# @example
#   name: exclusion: {within: ["A", "B, "C"]}
class ExclusionValidator extends Validator
  #@param [Any] value
  #@param [Object] attributes - object with [within] key and range
  #@return [Boolean]
  validate: (value, attributes) ->
    range = attributes['within'] || []
    if range.indexOf(value) == -1
