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
-
.pry_prompts ⇒ Object
Public: A helper for use when assigning the prompt’s to Pry.
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
.pry_prompts ⇒ Object
Public: A helper for use when assigning the prompt’s to Pry
Returns an Array of prompts
26 27 28 |
# File 'lib/icepick/prompt.rb', line 26 def self.pry_prompts [main_prompt, wait_prompt] end |