- Install Ruby 2.4
- Install pry gem:
gem install pry
- Run
ruby example.rb
- Now a REPL should start. You can call some methods of the
test
object (e.g.test.method1()
).
- Run
ruby pacman.rb
- Execute
p.eat_dot
orp.hit_ghost
several times and see what happens.