Method: Command::CommandSet#prompt

Defined in:
lib/command-set/command-set.rb

#promptObject



284
285
286
287
288
289
290
291
292
293
294
# File 'lib/command-set/command-set.rb', line 284

def prompt
  if @prompt.nil?
    if @name.empty?
      return [/$/, ""]
    else
      return [/$/, "#@name : "]
    end
  else
    return @prompt
  end
end