# File basiclibrary.rb, line 48 def hier_inspect(indent=0) t1 = "\t"*indent t2 = t1+"\t" s = "[\n" lastkey = self.length-1 self.each_with_index{ |v,i| s << t2 s << v.hier_inspect(indent+1) s << "," unless i==lastkey s << "\n" } s << t1+"]" end