obj.each{|a|a.some_method1.each{|b|...# comes here (enter)}a.some_method2.each{|c|...# does not enter here}}# tried and that way. also does not goforainobjforbina.some_method1...# comes hereendforcina.some_method2...# does not enter hereendend
help solve the problem. I’ve been suffering for 2 days.
Can you explain what you are trying to do, and provide a self-contained example? It is not clear from the description or the code what you think the problem is. I can only guess that the object returned by a.some_method2 has an each method that does not yield when called.