Module: Apartment::CustomConsole

Defined in:
lib/apartment/custom_console.rb

Class Method Summary collapse

Class Method Details

.prompt_contents(pry, target_self, nest_level, sep) ⇒ Object



36
37
38
39
40
# 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