Module: Hash::Extract

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

Defined Under Namespace

Modules: Etest

Instance Method Summary collapse

Instance Method Details

#extract(*args) ⇒ Object


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

def extract(*args)
  extract_mapped(:[], *args)
end

#extract!(*args) ⇒ Object

i.e. extract_and_delete


7
8
9
# File 'lib/vex/base/hash/extract.rb', line 7

def extract!(*args)
  extract_mapped(:delete, *args)
end