Class: Icepick::Prompt
- Inherits:
-
Object
- Object
- Icepick::Prompt
- Defined in:
- lib/icepick/prompt.rb
Class Attribute Summary collapse
-
.config ⇒ Object
Our configuration instance.
-
.level ⇒ Object
The nesting level of the current Pry.
-
.pry ⇒ Object
An instance of the current Pry session.
-
.target ⇒ Object
Pry prompt’s target object.
Class Method Summary collapse
-
.main_prompt ⇒ Object
Public: Piece together the main prompt .
-
.wait_prompt ⇒ Object
Public: Build out the wait prompt.
Class Attribute Details
.config ⇒ Object
Our configuration instance
17 18 19 |
# File 'lib/icepick/prompt.rb', line 17 def config @config end |
.level ⇒ Object
The nesting level of the current Pry
11 12 13 |
# File 'lib/icepick/prompt.rb', line 11 def level @level end |
.pry ⇒ Object
An instance of the current Pry session
14 15 16 |
# File 'lib/icepick/prompt.rb', line 14 def pry @pry end |
.target ⇒ Object
Pry prompt’s target object
8 9 10 |
# File 'lib/icepick/prompt.rb', line 8 def target @target end |
Class Method Details
.main_prompt ⇒ Object
Public: Piece together the main prompt
Returns a Proc
26 27 28 |
# File 'lib/icepick/prompt.rb', line 26 def self.main_prompt prompt_proc(config.main_layout) end |
.wait_prompt ⇒ Object
Public: Build out the wait prompt
Returns a Proc
33 34 35 |
# File 'lib/icepick/prompt.rb', line 33 def self.wait_prompt prompt_proc(config.wait_layout) end |