Class: Helium::Console::Prompt

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

Instance Method Summary collapse

Constructor Details

#initializePrompt

Returns a new instance of Prompt.



6
7
8
# File 'lib/helium/console/prompt.rb', line 6

def initialize
  @line = 0
end

Instance Method Details

#pry_promptObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/helium/console/prompt.rb', line 10

def pry_prompt
  Pry::Prompt.new(
    'helium',
    'Default prompt for helium',
    [
      method(:active_prompt),
      method(:wait_prompt)
    ]
  )
end