lib/ldclient-rb/evaluation.rb
# Evaluates a feature flag and returns an EvalResult. The result.value will be nil if the flag returns
# the default value. Error conditions produce a result with an error reason, not an exception.
Evaluates a feature flag and returns an EvalResult. The result.value will be nil if the flag returns
the default value. Error conditions produce a result with an error reason, not an exception.
Evaluates a feature flag and returns an EvalResult . The result . value will be nil if the flag returns the default value . Error conditions produce a result with an error reason not an exception .
def evaluate(flag, user, store, logger)
      if user.nil? || user[:key].nil?
        return EvalResult.new(error_result('USER_NOT_SPECIFIED'), [])
      end
      events = []
      detail = eval_internal(flag, user, store, events, logger)
      return EvalResult.new(detail, events)
    end
def evaluate ( flag , user , store , logger ) if user . nil? || user [ :key ] . nil? return EvalResult . new ( error_result ( 'USER_NOT_SPECIFIED' ) , [ ] ) end events = [ ] detail = eval_internal ( flag , user , store , events , logger ) return EvalResult . new ( detail , events ) end
Evaluates a feature flag and returns an EvalResult.
Evaluates a feature flag and returns an EvalResult .
flag
<not_specific>
user
<not_specific>
store
<not_specific>
logger
<not_specific>