Module: Hpath
- Defined in:
- lib/hpath.rb,
lib/hpath/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
Class Method Details
.get(object, hpath_string) ⇒ Object
6 7 8 9 |
# File 'lib/hpath.rb', line 6 def self.get(object, hpath_string) hpath = Hpath::Parser.parse(hpath_string) _get(object, hpath[:path]) end |
.set(object, hpath_string, value) ⇒ Object
11 12 13 14 |
# File 'lib/hpath.rb', line 11 def self.set(object, hpath_string, value) hpath = Hpath::Parser.parse(hpath_string) _set(object, hpath[:path], value) end |