Module: Hash::EnsureKeys

Included in:
Hash
Defined in:
lib/vex/base/hash/ensure_keys.rb

Defined Under Namespace

Modules: Etest

Instance Method Summary collapse

Instance Method Details

#keys?(*keys) ⇒ Boolean

Returns:

  • (Boolean)

2
3
4
# File 'lib/vex/base/hash/ensure_keys.rb', line 2

def keys?(*keys)
  (keys - self.keys()).empty?
end