class ErlangConfigFile
def self.turn_to_hash(t)
def self.turn_to_hash(t) if t.is_a?(Array) && t.all? { |x| x.class == ErlangTransform::Tuple && x.length == 2 } Hash[t.map { |i| [i[0], turn_to_hash(i[1])] }] else t end end
def self.turn_to_hash(t) if t.is_a?(Array) && t.all? { |x| x.class == ErlangTransform::Tuple && x.length == 2 } Hash[t.map { |i| [i[0], turn_to_hash(i[1])] }] else t end end