lib/arql/repl.rb in arql-0.2.1 vs lib/arql/repl.rb in arql-0.2.2

- old
+ new

@@ -23,20 +23,20 @@ end @main end def prompt - [proc do |obj, nest_level, _| + [proc do |obj, nest_level, pry_instance| if obj == main_object && nest_level == 0 nest_level_prompt = '' else nest_level_prompt = if nest_level.zero? "(#{obj})" else "(#{obj}:#{nest_level})" end end - "%s#{Rainbow('@').green}%s#{nest_level_prompt} %s " % [Rainbow('ARQL').red, Rainbow(App.prompt).yellow, Rainbow('❯').green] + "%s#{Rainbow('@').green}%s#{nest_level_prompt} [%d] %s " % [Rainbow('ARQL').red, Rainbow(App.prompt).yellow, pry_instance.input_ring.count, Rainbow('❯').green] end] end end end