Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pry: IRB on vitamins

iamjarvo
August 14, 2012

Pry: IRB on vitamins

Pry is a REPL that is an alternative to IRB.

iamjarvo

August 14, 2012
Tweet

More Decks by iamjarvo

Other Decks in Programming

Transcript

  1. High level view • Syntax highlighting / Proper Indentation •

    Customizable • Quick documentation lookup • Quick monkey patching • Great debugging tool • Gist capabilities
  2. Gist • Install jist gem ( https://github.com/conradirwin/) • jist --login

    • gist -m Array#take_while • gist -m a.take_while
  3. REPL capabilities • input buffer multiline text waiting to be

    completed • ! clears input buffer • show-input => shows the current input buffer • amend-line N replacement
  4. Rails console • Alias pryr to launch pry with rails

    environment • pry -r ./config/environment