class Hash
Public Instance Methods
each_deep(&proc)
click to toggle source
# File lib/fluent/plugin/out_http_ext.rb, line 14 def each_deep(&proc) self.each_deep_detail([], &proc) end
each_deep_detail(directory) { |current, v| ... }
click to toggle source
# File lib/fluent/plugin/out_http_ext.rb, line 18 def each_deep_detail(directory, &proc) self.each do |k, v| current = directory + [k] if v.kind_of?(Hash) v.each_deep_detail(current, &proc) else yield(current, v) end end end