Class: Cloudkeeper::Utils::Hash
- Inherits:
-
Object
- Object
- Cloudkeeper::Utils::Hash
- Defined in:
- lib/cloudkeeper/utils/hash.rb
Class Method Summary collapse
Class Method Details
.values?(hash_instance, *keys) ⇒ Boolean
4 5 6 |
# File 'lib/cloudkeeper/utils/hash.rb', line 4 def self.values?(hash_instance, *keys) keys.reduce(true) { |acc, elem| !hash_instance[elem].blank? && acc } end |