Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/aha.rb

Overview

Extends Hash with functionality from Aha::AugmentedHash.

Methods are implemented by delegating to AugmentedHash on an individual method basis. Using module methods as opposed to a mixing in a module is preferrable as it allows us to include functionality in a piecemeal manner if necessary and supports minimal changes to the core Hash class.

For more information see Aha::AugmentedHash.

Instance Method Summary collapse

Instance Method Details

#delete_in!(*keys) ⇒ Object



29
30
31
# File 'lib/aha.rb', line 29

def delete_in!(*keys)
  Aha::AugmentedHash::delete_in!(self, *keys)
end

#exclude!(*keys) ⇒ Object



33
34
35
# File 'lib/aha.rb', line 33

def exclude!(*keys)
  Aha::AugmentedHash::exclude!(self, *keys)
end

#get_in(*keys) ⇒ Object



17
18
19
# File 'lib/aha.rb', line 17

def get_in(*keys)
  Aha::AugmentedHash::get_in(self, *keys)
end

#only(*keys) ⇒ Object



37
38
39
# File 'lib/aha.rb', line 37

def only(*keys)
  Aha::AugmentedHash::only(self, *keys)
end

#put_in!(*args) ⇒ Object



21
22
23
# File 'lib/aha.rb', line 21

def put_in!(*args)
  Aha::AugmentedHash::put_in!(self, *args)
end

#update_in!(*keys, &block) ⇒ Object



25
26
27
# File 'lib/aha.rb', line 25

def update_in!(*keys, &block)
  Aha::AugmentedHash::update_in!(self, *keys, &block)
end

#vals_at(*keys) ⇒ Object



13
14
15
# File 'lib/aha.rb', line 13

def vals_at(*keys)
  Aha::AugmentedHash::vals_at(self, *keys)
end