Class: Bizsh::REPL

Inherits:
Object
  • Object
show all
Defined in:
lib/bizsh.rb

Constant Summary collapse

NAME =

REPL prompt.

'bizsh'

Instance Method Summary collapse

Instance Method Details

#startObject

Start a REPL with refined types.



97
98
99
100
101
# File 'lib/bizsh.rb', line 97

def start
  Pry.hooks.clear_all # Remove default pry hooks.
  Pry.config.prompt = proc { |_, nest_level, _| "#{NAME}> " } # bizsh prompt.
  Pry.start binding # Fire up the REPL.
end