Class: Icepick::Prompt

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Our configuration instance



17
18
19
# File 'lib/icepick/prompt.rb', line 17

def config
  @config
end

.levelObject

The nesting level of the current Pry



11
12
13
# File 'lib/icepick/prompt.rb', line 11

def level
  @level
end

.pryObject

An instance of the current Pry session



14
15
16
# File 'lib/icepick/prompt.rb', line 14

def pry
  @pry
end

.targetObject

Pry prompt’s target object



8
9
10
# File 'lib/icepick/prompt.rb', line 8

def target
  @target
end

Class Method Details

.main_promptObject

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_promptObject

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