A particular line of code results in no output, and IRB exits out of the >>
prompt. I am not looking to exit IRB, but just to exit to a state preceding the line of code that caused the >>
prompt to go away.
>> stop_words = %w {the a and if}
>> stop_words.each{|x| stop_words << x.capitalize}
quit
quit
quit
- Once I enter this situation, I cannot even exit the IRB shell, as the 'quit' command does not execute any changes.
- I would like to exit the state and still have my preceding variable definitions intact, so that in the code example, I could call on
stop_words
to experiment with it. Any elucidation/insight into what's going on here is appreciated.
"
s. Instead properly format code blocks. – Astri>>
s. – Astri