vendor/gems/fireeagle-0.8.0.1/lib/fireeagle.rb
# Returns <code>true</code> if the ALL or NONE of the given keys are present in <i>my_keys</i>.
Returns true if the ALL or NONE of the given keys are present in my_keys.
Returns true if the ALL or NONE of the given keys are present in my_keys .
def has_all_or_none_keys?(*my_keys)
    size = my_keys.length
    false_count = 0
    my_keys.each do |k|
      false_count += 1 unless keys.include?(k)
    end
    false_count == 0 or false_count == size
  end
def has_all_or_none_keys? ( * my_keys ) size = my_keys . length false_count = 0 my_keys . each do | k | false_count += 1 unless keys . include? ( k ) end false_count == 0 or false_count == size end
Returns <code>true</code> if the ALL or NONE of the given keys are present in <i>my_keys</i>.
Returns <code > true< / code > if the ALL or NONE of the given keys are present in <i > my_keys< / i > .
my_keys
<not_specific>