# File basiclibrary.rb, line 228 def hier_inspect(indent=0) t1 = "\t"*indent t2 = t1+"\t" s = "<struct #{self.class}\n" self.each_pair{ |key,val| s << t2 s << (key.to_s + '=') s << val.hier_inspect(indent+1) << ',' s << "\n" } s[0...-2] << "\n"+t1+">" end