Sha256: f5c3cd2529895f8dd9ad042fe72e3494ce39afcf3353d24b78e01e6cba25c563

Contents?: true

Size: 247 Bytes

Versions: 13

Compression:

Stored size: 247 Bytes

Contents

# override Hash class
class Hash
  def each_with_parent(parent = nil, &block)
    each do |key, value|
      if value.is_a?(Hash)
        value.each_with_parent(key, &block)
      else
        yield(parent, key, value)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
asana_exception_notifier-0.3.6 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.3.5 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.3.4 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.3.3 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.3.2 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.3.1 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.2.2 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.2.1 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.2.0 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.1.0 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.0.9 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.0.8 lib/asana_exception_notifier/initializers/hash.rb
asana_exception_notifier-0.0.7 lib/asana_exception_notifier/initializers/hash.rb