Sha256: 1d0c84757ff40dc33aaa6f5b4a44ba0377b929826b53ff7092ccc6383c3acd61

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 Bytes

Contents

# *******************************************************************************
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
# See also https://openstudio.net/license
# *******************************************************************************

class Hash
  def deep_find(key)
    key?(key) ? self[key] : values.reduce(nil) { |memo, v| memo ||= v.deep_find(key) if v.respond_to?(:deep_find) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openstudio-analysis-1.3.6 lib/openstudio/helpers/hash.rb