Meta tags:
description= Pry is a powerful alternative to the standard IRB shell for Ruby.;
Headings (most frequently used words):
pry, get, to, the, code, quickstart, introductory, screencast, features, more, examples, please, support, credits, runtime, invocation, command, shell, integration,
Text of the page (most frequently used words):
pry (49), the (28), and (21), main (15), home (8), shell (8), list (7), john (7), world (6), hello (6), end (6), ruby (6), program (6), for (6), fileutils (6), options (6), you (5), from (5), also (5), puts (5), #command (5), session (5), features (5), screencasts (4), wiki (4), pryrc (4), def (4), code (4), file (4), can (4), nil (4), goodbye (4), runtime (4), source (4), core (3), number (3), support (3), please (3), mode (3), syntax (3), that (3), with (3), system (3), editors (3), integration (3), resumes (3), here (3), developer (3), invocation (3), flexible (3), irb (3), powerful (3), method (3), browsing (3), watch (3), contributors (2), mair (2), api (2), docs (2), development (2), get (2), name (2), project (2), its (2), making (2), hello_world (2), cat (2), edit (2), directory (2), use (2), into (2), bring (2), directly (2), line (2), this (2), run (2), git (2), rake (2), within (2), value (2), changed (2), cruel (2), start (2), repl (2), class (2), implementing (2), point (2), state (2), more (2), other (2), advanced (2), console (2), highlighting (2), documentation (2), gem (2), some (2), screencast (2), coverage (2), out (2), force (2), path (2), install (2), alternative (2), logo, studiokun, website, initial, html5, ippa, comes, mind, who, brought, free, remix, devil, methodsource, texplay, participate, your, see, article, how, contribute, team, are, founder, aka, banisterfiend, aided, healthy, ryan, fitzgerald, conrad, irwin, blog, twitter, credits, was, huge, amount, work, every, dollar, received, encouraging, liked, found, useful, continued, consider, donation, true, load, emacsclient, projects, below, going, switch, then, contents, reload, further, incorporate, present, working, prompt, completion, interpolate, using, normal, string, interpolation, input, begins, will, forwarded, enables, navigate, spawn, output, exit, after, binding, set, new, require, test, functionality, used, such, things, debugging, consoles, applying, hot, patches, invoked, middle, running, opens, called, makes, all, available, when, ends, continues, any, modifications, made, examples, fairly, allows, significant, user, customization, good, choice, custom, shells, aims, than, replacement, attempt, driven, programming, language, currently, not, tools, like, slime, lisp, but, general, direction, heading, many, convenience, commands, inspired, ipython, smalltalk, repls, ability, view, replay, history, exotic, object, basicobject, instances, iclasses, debugger, gist, open, methods, live, help, navigation, around, friends, including, doc, written, scratch, provide, these, include, recommended, following, put, together, includes, instructions, installing, well, josh, cheek, introductory, comprehensive, check, remove_file, each, noop, return, verbose, join, fu_output_message, fu_list, opt_table, fu_check_options, owner, lines, 556, lib, opt, show, try, displaying, quickstart, standard, plugin, architecture, buy, swag,
Text of the page (random words):
pry an irb alternative and runtime developer console buy pry swag pry get to the code pry is a powerful alternative to the standard irb shell for ruby it features syntax highlighting a flexible plugin architecture runtime invocation and source and documentation browsing home wiki api docs screencasts 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 introductory screencast it is recommended you watch the following screencast put together by josh cheek it includes instructions on installing pry as well as some coverage of core features watch other screencasts features pry is written from scratch to provide a number of advanced features some of these include source code browsing including core c source with the pry doc gem navigation around state cd ls and friends documentation browsing live help system open methods in editors edit method class method syntax highlighting command shell integration start editors run git and rake from within pry gist integration runtime invocation use pry as a developer console or debugger exotic object support basicobject instances iclasses a powerful and flexible command system ability to view and replay history many convenience commands inspired by ipython smalltalk and other advanced repls pry also aims to be more than an irb replacement it is an attempt to bring repl driven programming to the ruby language it is currently not as powerful as tools like slime for lisp but that is the general direction pry is heading pry is also fairly flexible and allows significant user customization making it a good choice for implementing custom shells more examples runtime invocation pry can be invoked in the middle of a running program it opens a pry session at the point it s called and makes all program state at that point available when the session ends the program continues with any modifications you made to it this functionality can be used for such things as debugging implementing developer consoles and applying hot patches test rb require pry class a def hello puts hello world end end a a new set x to 10 x 10 start a repl session binding pry program resumes here after pry session puts program resumes here value of x is x pry session pry main a hello hello world nil pry main puts x 10 nil pry main def a goodbye pry main puts goodbye cruel world pry main end nil pry main a goodbye goodbye cruel world nil pry main x changed pry main exit output program resumes here value of x is changed command shell integration a line of input that begins with a will be forwarded to the command shell this enables us to navigate the file system spawn editors and run git and rake directly from within pry further we can use the shell mode command to incorporate the present working directory into the pry prompt and bring file name completion we can also interpolate ruby code directly into the shell by using the normal string interpolation syntax in the code below we re going to switch to shell mode and edit the pryrc file in the home directory we ll then cat its contents and reload the file pry main shell mode pry main home john ruby projects pry cd pry main home john emacsclient pryrc pry main home john cat pryrc def hello_world puts hello world end pry main home john load pryrc true pry main home john hello_world hello world please support pry if you liked pry and found it useful please consider making a donation to support its continued development pry was a huge amount of work and every dollar received is encouraging credits the pry core team are john mair project founder aka banisterfiend twitter blog conrad irwin and ryan fitzgerald the project is also aided by a healthy number of contributors to participate in pry s development and get your name on the list see the wiki article on how to contribute home wiki api docs screencasts pry comes to you from the mind of john mair who also brought you texplay methodsource devil remix free initial html5 by ippa list of website contributors pry logo by studiokun
|