Unable to access instance variable outside the class in ruby -
outside of class p @stack in my code while trying to print, and it < By inserting code> zero and entering
attr_accessor: stacks,: each_stack_size,: stack_number . As always, it works fine and shows data while using the inside of the class. What am I missing?
Comments
Post a Comment