vendor/bundle/ruby/2.3.0/gems/sqreen-1.10.5/lib/sqreen/rules_callbacks/binding_accessor_metrics.rb
# Exception thrown when no expression are present
Exception thrown when no expression are present
Exception thrown when no expression are present
def build_expressions(callbacks)
        raise NoExpressions, callbacks if callbacks.nil? || callbacks.empty?
        [PRE_CB, POST_CB, FAILING_CB].each do |c|
          next if callbacks[c].nil? || callbacks[c].size < 3
          @expr[c] = callbacks[c].map { |req| BindingAccessor.new(req, true) }
        end
        raise NoExpressions, callbacks if @expr.empty?
      end
def build_expressions ( callbacks ) raise NoExpressions , callbacks if callbacks . nil? || callbacks . empty? [ PRE_CB , POST_CB , FAILING_CB ] . each do | c | next if callbacks [ c ] . nil? || callbacks [ c ] . size < 3 @expr [ c ] = callbacks [ c ] . map { | req | BindingAccessor . new ( req , true ) } end raise NoExpressions , callbacks if @expr . empty? end
Exception thrown when no expression are present
Exception thrown when no expression are present
callbacks
<not_specific>