module Apartment::CustomConsole

Public Class Methods

prompt_contents(pry, target_self, nest_level, sep) click to toggle source
# File lib/apartment/custom_console.rb, line 36
def self.prompt_contents(pry, target_self, nest_level, sep)
  "[#{pry.input_ring.size}] [#{PryRails::Prompt.formatted_env}][#{Apartment::Tenant.current}] " \
  "#{pry.config.prompt_name}(#{Pry.view_clip(target_self)})" \
  "#{":#{nest_level}" unless nest_level.zero?}#{sep} "
end