Sha256: 23bd70cc2fda5e64021a4b1ed36cf7304aaca180a9728fdf8344aabcf600000c
Contents?: true
Size: 628 Bytes
Versions: 253
Compression:
Stored size: 628 Bytes
Contents
class Pry class Command::Nesting < Pry::ClassCommand match 'nesting' group 'Navigating Pry' description 'Show nesting information.' banner <<-'BANNER' Show nesting information. BANNER def process output.puts 'Nesting status:' output.puts '--' _pry_.binding_stack.each_with_index do |obj, level| if level == 0 output.puts "#{level}. #{Pry.view_clip(obj.eval('self'))} (Pry top level)" else output.puts "#{level}. #{Pry.view_clip(obj.eval('self'))}" end end end end Pry::Commands.add_command(Pry::Command::Nesting) end
Version data entries
253 entries across 246 versions & 44 rubygems