Class: Filemaker::HashWithIndifferentAndCaseInsensitiveAccess
- Inherits:
-
Hash
- Object
- Hash
- Filemaker::HashWithIndifferentAndCaseInsensitiveAccess
- Defined in:
- lib/filemaker/core_ext/hash.rb
Direct Known Subclasses
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
- #delete(key) ⇒ Object
- #fetch(key, *extras) ⇒ Object
- #key?(key) ⇒ Boolean (also: #include?, #member?)
- #values_at(*indices) ⇒ Object
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?
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 |