Class: MotherBrain::Console
- Inherits:
-
Pry::REPL
- Object
- Pry::REPL
- MotherBrain::Console
- Defined in:
- lib/mb/console.rb
Class Method Summary collapse
Class Method Details
.default_prompt(target, nest_level, pry) ⇒ Object
30 31 32 |
# File 'lib/mb/console.rb', line 30 def default_prompt(target, nest_level, pry) "mb(#{Pry.view_clip(target.class)}: #{Pry.view_clip(target)}):[#{nest_level}] >> " end |
.start(options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/mb/console.rb', line 25 def start( = {}) = .reverse_merge(target: MB::Application, prompt: method(:default_prompt)) super() end |