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



9
10
11
12
# File 'lib/ice_cube/flexible_hash.rb', line 9

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

#delete(key) ⇒ Object



19
20
21
22
# File 'lib/ice_cube/flexible_hash.rb', line 19

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

#fetch(key) ⇒ Object



14
15
16
17
# File 'lib/ice_cube/flexible_hash.rb', line 14

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