Class: Filemaker::HashWithIndifferentAndCaseInsensitiveAccess

Inherits:
Hash
  • Object
show all
Defined in:
lib/filemaker/core_ext/hash.rb

Direct Known Subclasses

Record

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



7
8
9
# File 'lib/filemaker/core_ext/hash.rb', line 7

def [](key)
  super(convert_key(key))
end

#[]=(key, value) ⇒ Object



3
4
5
# File 'lib/filemaker/core_ext/hash.rb', line 3

def []=(key, value)
  super(convert_key(key), value)
end

#delete(key) ⇒ Object



26
27
28
# File 'lib/filemaker/core_ext/hash.rb', line 26

def delete(key)
  super(convert_key(key))
end

#fetch(key, *extras) ⇒ Object



18
19
20
# File 'lib/filemaker/core_ext/hash.rb', line 18

def fetch(key, *extras)
  super(convert_key(key), *extras)
end

#key?(key) ⇒ Boolean Also known as: include?, member?

Returns:

  • (Boolean)


11
12
13
# File 'lib/filemaker/core_ext/hash.rb', line 11

def key?(key)
  super(convert_key(key))
end

#values_at(*indices) ⇒ Object



22
23
24
# File 'lib/filemaker/core_ext/hash.rb', line 22

def values_at(*indices)
  indices.map { |key| self[convert_key(key)] }
end