puts "\nobject.methods : " \ + object.methods.sort.join(" ").to_s+"\n" def show_methods_for_object(object) name = object.class.name puts "\n#{name}\t methods: " + object.methods.sort.join(" ").to_s+"\n" end