Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Pry: IRB on vitamins
Search
iamjarvo
August 14, 2012
Programming
140
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pry: IRB on vitamins
Pry is a REPL that is an alternative to IRB.
iamjarvo
August 14, 2012
More Decks by iamjarvo
See All by iamjarvo
Git productivity and tricks
iamjarvo
2
190
Other Decks in Programming
See All in Programming
protojson における文字化けの扱い
kazuki1023
0
140
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
350
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
240
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
610
Distance field of Julia set
kinakomoti321
0
300
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
920
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
5.8k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
410
Modernizing iOS Apps
seyfoyun
0
150
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
170
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
300
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
300
Featured
See All Featured
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
3
1.2k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
How STYLIGHT went responsive
nonsquared
100
6.4k
WCS-LA-2024
lcolladotor
0
980
Making the Leap to Tech Lead
cromwellryan
135
10k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
630
Bash Introduction
62gerente
615
220k
A designer walks into a library…
pauljervisheath
211
25k
Prompt Engineering for Job Search
mfonobong
0
580
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
830
Facilitating Awesome Meetings
lara
57
7.2k
Transcript
Pry IRB on vitamins
Who am I? • Jearvon Dharrie • Twitter: @jearvon •
irc: iamjarvo
What is pry? • REPL(read, eval, print loop) • Powerful
alternative to IRB
High level view • Syntax highlighting / Proper Indentation •
Customizable • Quick documentation lookup • Quick monkey patching • Great debugging tool • Gist capabilities
Pry in my day to day • Debugging • Documentation
lookup
Installation • gem i pry pry-doc (reading stuff written in
c) • pry • help
Now the cool stuff!
Documentaion • show-doc Array#take_while • a = [1, 2, 3]
• show-doc a.take_while
Viewing Source • show-source Array#take_while -l • a = [1,2,3]
• show-source a.take_while -l
Gist • Install jist gem ( https://github.com/conradirwin/) • jist --login
• gist -m Array#take_while • gist -m a.take_while
Easily cd into a gem • gem-cd “gem name”
Shell commands • Prefix commands with . • .pwd •
.ls
REPL capabilities • input buffer multiline text waiting to be
completed • ! clears input buffer • show-input => shows the current input buffer • amend-line N replacement
Navigating around • cd object • ls • can grep
output of ls • ls -h
Patching on the fly
Current state
Rails console • Alias pryr to launch pry with rails
environment • pry -r ./config/environment
Plugins • pry-debugger • pry-remote • pry-stack_explorer • pry-theme •
pry-debundle
.pryrc • Alias commands • set colorscheme
From here • #pry on freenode • give it a
pry!