Class: VDF4R::Store
- Inherits:
-
Hash
- Object
- Hash
- VDF4R::Store
- Defined in:
- lib/vdf4r/store.rb
Instance Method Summary collapse
-
#initialize ⇒ Store
constructor
A new instance of Store.
- #traverse(path) ⇒ Object
Constructor Details
Instance Method Details
#traverse(path) ⇒ Object
7 8 9 |
# File 'lib/vdf4r/store.rb', line 7 def traverse(path) path.inject(self) { |current, path_component| current[path_component] } end |