GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Pry - Get to the Code
  • Home
  • Wiki
  • API Docs
  • Screencasts

This view

  • Original page
  • New address

GeezerVison is showing pry.github.io — Pry - an IRB alternative and runtime developer console

Quickstart

Install Pry:

$ gem install pry
$ pry

Try it out: (Displaying source for FileUtils.rm)

pry(main)> cd FileUtils
pry(FileUtils):1> show-method rm

From: /opt/ruby/lib/ruby/1.9.1/fileutils.rb @ line 556:
Number of lines: 10
Owner: FileUtils

def rm(list, options = {})
  fu_check_options options, OPT_TABLE['rm']
  list = fu_list(list)
  fu_output_message "rm#{options[:force] ? ' -f' : ''} #{list.join ' '}" if options[:verbose]
  return if options[:noop]

  list.each do |path|
    remove_file path, options[:force]
  end
end
pry(FileUtils):2>

For comprehensive coverage of Pry's features please check out the Wiki and watch the screencasts.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.