From: krobison@... Date: 2016-08-16T20:36:07+00:00 Subject: [ruby-core:76937] [Ruby trunk Bug#12682] Hash#flatten(level) does not recursively flatten inner hashes. Issue #12682 has been reported by Kristine Robison. ---------------------------------------- Bug #12682: Hash#flatten(level) does not recursively flatten inner hashes. https://bugs.ruby-lang.org/issues/12682 * Author: Kristine Robison * Status: Open * Priority: Normal * Assignee: * ruby -v: 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- ~~~ pry [1] pry(main)> x = {a: {b: 1, c:2}} => {:a=>{:b=>1, :c=>2}} [2] pry(main)> x.flatten(1) => [:a, {:b=>1, :c=>2}] [3] pry(main)> x.flatten(2) => [:a, {:b=>1, :c=>2}] ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: