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

.pry_promptsObject

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