lib/rash/shell/pry/prompt.rb in rash-shell-0.3.0 vs lib/rash/shell/pry/prompt.rb in rash-shell-0.3.1

- old
+ new

@@ -1,16 +1,16 @@ # frozen_string_literal: true Pry.config.prompt = [ proc do |obj, _, pry| - target = obj.to_s == 'main' ? '' : " (#{target_self.to_s.split('::').last})" + target = obj.to_s == 'main' ? '' : " (#{obj.to_s.split('::').last})" env = Rash::Shell.environment_with_color "#{pry.config.prompt_name} [#{env}]#{target} % " end, proc do |obj, _, pry| - target = obj.to_s == 'main' ? '' : " (#{target_self.to_s.split('::').last})" + target = obj.to_s == 'main' ? '' : " (#{obj.to_s.split('::').last})" env = Rash::Shell.environment_with_color "#{pry.config.prompt_name} [#{env}]#{target} * " end ]