Module: Tins::HashSymbolizeKeysRecursive
- Extended by:
- ThreadLocal
- Defined in:
- lib/tins/hash_symbolize_keys_recursive.rb
Instance Method Summary
collapse
instance_thread_local, thread_local
Instance Method Details
#symbolize_keys_recursive(circular: nil) ⇒ Object
9
10
11
12
13
14
|
# File 'lib/tins/hash_symbolize_keys_recursive.rb', line 9
def symbolize_keys_recursive(circular: nil)
self.seen = {}
_symbolize_keys_recursive(self, circular: circular)
ensure
self.seen = nil
end
|
#symbolize_keys_recursive!(circular: nil) ⇒ Object
16
17
18
|
# File 'lib/tins/hash_symbolize_keys_recursive.rb', line 16
def symbolize_keys_recursive!(circular: nil)
replace symbolize_keys_recursive(circular: circular)
end
|