Module: Dotpath::Extension

Defined in:
lib/dotpath/extension.rb

Instance Method Summary collapse

Instance Method Details

#collect_with_json_path(&block) ⇒ Object



9
10
11
# File 'lib/dotpath/extension.rb', line 9

def collect_with_json_path(&block)
  Dotpath::Mutate.mutate(self, &block)
end

#each_with_json_path(&block) ⇒ Object



5
6
7
# File 'lib/dotpath/extension.rb', line 5

def each_with_json_path(&block)
  Dotpath::Walk.walk(self, &block)
end

#value_at_path(json_path) ⇒ Object



13
14
15
# File 'lib/dotpath/extension.rb', line 13

def value_at_path(json_path)
  Dotpath.value_at_path(self, json_path)
end