The source for code_object prepared for display.
# File lib/pry/commands/show_source.rb, line 41 def content_for(code_object) Code.new(code_object.source, start_line_for(code_object)). with_line_numbers(use_line_numbers?).highlighted end
# File lib/pry/commands/show_source.rb, line 27 def options(opt) opt.on :e, :eval, "evaluate the command's argument as a ruby expression and show the class its return value" super(opt) end
# File lib/pry/commands/show_source.rb, line 32 def process if opts.present?(:e) obj = target.eval(args.first) self.args = Array.new(1) { Module === obj ? obj.name : obj.class.name } end super end