module NeoScout::JSON

Public Class Methods

cd(json, args) click to toggle source
# File lib/neoscout/tools.rb, line 144
def self.cd(json, args)
  current = json
  args.each do |k|
    current = if current.has_key? k
      then current[k]
      else current[k] = {} end
  end
  current
end