Class: Bizsh::REPL
- Inherits:
-
Object
- Object
- Bizsh::REPL
- Defined in:
- lib/bizsh.rb
Constant Summary collapse
- NAME =
REPL prompt.
'bizsh'
Instance Method Summary collapse
-
#start ⇒ Object
Start a REPL with refined types.
Instance Method Details
#start ⇒ Object
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 |