Ruby undefined method 'each' for class -
i getting error when create class of stats , container class. error test.rb:43:in `<main>' undefined method `each' #<boyfriends:0x2803db8 @boyfriends=[, , , ]> (nomethoderror) which makes absolute sense because class indeed not contain method, should ruby search parents , grandparents classes method? script displays desired output; inlays error output so test.rb:43:in `<main>'i love rikuo because 8 years old , has 13 inch nose love dolar because 12 years old , has 18 inch nose love ghot because 53 years old , has 0 inch nose love grats because unknown years old , has 9999 inch nose : undefined method `each' #<boyfriends:0x2803db8 @boyfriends=[, , , ]> (nomethoderror) here code class boyfriends def initialize @boyfriends = array.new end def append(aboyfriend) @boyfriends.push(aboyfriend) self end def deletefirst @boyfriends.shift end def deletelast @boyfriends.pop...