Class: IceCube::FlexibleHash

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ice_cube/flexible_hash.rb

Overview

Find keys by symbol or string without symbolizing user input Due to the serialization format of ice_cube, this limited implementation is entirely sufficient

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



11
12
13
14
# File 'lib/ice_cube/flexible_hash.rb', line 11

def [](key)
  key = _match_key(key)
  super
end

#delete(key) ⇒ Object



21
22
23
24
# File 'lib/ice_cube/flexible_hash.rb', line 21

def delete(key)
  key = _match_key(key)
  super
end

#fetch(key) ⇒ Object



16
17
18
19
# File 'lib/ice_cube/flexible_hash.rb', line 16

def fetch(key)
  key = _match_key(key)
  super
end