lib/spnet/limiters/enum_limiter.rb
def apply_limit value, current_value
    if @values.include? value
      return value
    else
      return current_value
    end
  end
# Limit the given value to those given by @values. If the given value is not
# found, return the current value.
Limit the given value to those given by @values. If the given value is not
found, return the current value.
Limit the given value to those given by @values . If the given value is not found return the current value .
def apply_limit value, current_value
    if @values.include? value
      return value
    else
      return current_value
    end
  end
def apply_limit value , current_value if @values . include? value return value else return current_value end end
Limit the given value to those given by @values.
Limit the given value to those given by @values .
value
current_value