class Alki::Console::PryConsole

Public Class Methods

new(name, context) click to toggle source
# File lib/alki/console/pry_console.rb, line 6
def initialize(name, context)
  @name = name
  @context = context
end

Public Instance Methods

start() click to toggle source
# File lib/alki/console/pry_console.rb, line 11
def start
  Pry.start(@context, prompt: [proc { "#{@name}> " }, proc {"#{@name}>>"}])
end