Class: Hash

Inherits:
Object
  • Object
show all
Includes:
HasharayExt::Interface
Defined in:
lib/hasharay_ext.rb

Instance Method Summary collapse

Methods included from HasharayExt::Interface

#fpath!

Instance Method Details

#fpath(path, strict: false, separator: ".", default: nil) ⇒ Object Also known as: fetch_path



93
94
95
# File 'lib/hasharay_ext.rb', line 93

def fpath(path, strict: false, separator: ".", default: nil)
  HasharayExt::Logic.new(clone.deep_stringify_keys, strict: strict, separator: separator, default: default).get(path)
end