- read
- evaluate
- loop
./repl_it_simple.rb
is a template you can use to create a REPL in
Ruby.
This template adds an infinite looping feature until the word quit is entered.
It includes all the attributes of a REPL.
./repl_it.rb
is a template you can use to create a REPL in Ruby.
This template adds an infinite looping feature until a certain key word is entered.
The template also introduces a new concept: exception handling.
When a user presses control c while your script is running it will exit a bit more gracefully.
Now that you know what methods are, you can write your own methods to further process the input.